From 88e221bad60ce20087fe2f8a85d506be36a6e6ca Mon Sep 17 00:00:00 2001 From: Yong He Date: Mon, 30 Dec 2024 23:38:34 -0800 Subject: Fix requirement candidate lookup to prefer decls in the same paraent as the inheritance decl. (#5965) --- source/core/slang-list.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/core') 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 Index binarySearch(const T2& obj, Comparer comparer) const { -- cgit v1.2.3