diff options
| author | Yong He <yonghe@outlook.com> | 2024-12-30 23:38:34 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-30 23:38:34 -0800 |
| commit | 88e221bad60ce20087fe2f8a85d506be36a6e6ca (patch) | |
| tree | 1a3c546d8a242c96dfe0fb0056ac891bd8394942 /source/core | |
| parent | 89dd2b1278f9e457d9d343742a51de27502ebca1 (diff) | |
Fix requirement candidate lookup to prefer decls in the same paraent as the inheritance decl. (#5965)
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 { |
