Dictionary mutable key access for const accessor hack

This commit is contained in:
Mateusz Karbowiak
2024-10-31 01:15:05 +01:00
parent 7cca26bb97
commit 26309a0d41

View File

@@ -500,7 +500,7 @@ public:
FindPosition(key, pos);
if (pos.ObjectIndex == -1)
return nullptr;
return static_cast<ValueType*>(&_allocation.Get()[pos.ObjectIndex].Value);
return const_cast<ValueType*>(&_allocation.Get()[pos.ObjectIndex].Value); //TODO This one is problematic. I think this entire method should be removed.
}
public: