From 76db3366cb6cfb5432e5d26acb67e5a96224900e Mon Sep 17 00:00:00 2001 From: Yong He Date: Fri, 22 Jan 2021 09:22:45 -0800 Subject: Fix existential specialization of mutable buffer loads. (#1671) * Fix existential specialization of mutable buffer loads. * fix Co-authored-by: Yong He --- source/core/slang-dictionary.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'source/core') diff --git a/source/core/slang-dictionary.h b/source/core/slang-dictionary.h index df5ee520d..4c352d55b 100644 --- a/source/core/slang-dictionary.h +++ b/source/core/slang-dictionary.h @@ -1003,7 +1003,17 @@ namespace Slang }; template class OrderedHashSet : public HashSetBase> - {}; + { + public: + T& getLast() + { + return this->dict.Last().Key; + } + void removeLast() + { + this->Remove(getLast()); + } + }; } #endif -- cgit v1.2.3