diff options
Diffstat (limited to 'buildtools/codegen/CodegenInput.inl')
-rw-r--r-- | buildtools/codegen/CodegenInput.inl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/buildtools/codegen/CodegenInput.inl b/buildtools/codegen/CodegenInput.inl index 9fae43c..80a39d0 100644 --- a/buildtools/codegen/CodegenInput.inl +++ b/buildtools/codegen/CodegenInput.inl @@ -13,7 +13,7 @@ class CodegenInput { private: std::vector<DeclEnum> mEnums; - robin_hood::unordered_map<std::string_view, size_t> mDeclByName; + robin_hood::unordered_map<std::string, size_t, StringHash, StringEqual> mDeclByName; public: void AddEnum(DeclEnum decl) { @@ -24,7 +24,7 @@ public: } #endif - mDeclByName.try_emplace(decl.name, mEnums.size()); + mDeclByName.try_emplace(std::string(decl.name), mEnums.size()); mEnums.push_back(std::move(decl)); } |