diff --git a/src/core/smallmap_type.hpp b/src/core/smallmap_type.hpp index 2699505445..28000145e4 100644 --- a/src/core/smallmap_type.hpp +++ b/src/core/smallmap_type.hpp @@ -86,7 +86,9 @@ struct SmallMap : SmallVector, S> { FORCEINLINE bool Insert(const T &key, const U &data) { if (this->Find(key) != this->End()) return false; - new (this->Append()) Pair(key, data); + Pair *n = this->Append(); + n->first = key; + n->second = data; return true; }