diff options
Diffstat (limited to 'source/core')
| -rw-r--r-- | source/core/slang-list.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/core/slang-list.h b/source/core/slang-list.h index d27afd415..7c96e3844 100644 --- a/source/core/slang-list.h +++ b/source/core/slang-list.h @@ -537,7 +537,7 @@ public: } } - inline void swapElements(T* vals, Index index1, Index index2) + inline static void swapElements(T* vals, Index index1, Index index2) { if (index1 != index2) { @@ -547,6 +547,8 @@ public: } } + inline void swapElements(Index index1, Index index2) { swapElements(m_buffer, index1, index2); } + template<typename T2, typename Comparer> Index binarySearch(const T2& obj, Comparer comparer) const { |
