diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-07-09 14:10:28 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-07-09 14:10:28 +0200 |
commit | 8b37098a15005d4163db74d7eac977c593268118 (patch) | |
tree | 93568fa44ffb26759c449387d1183c6e6081a984 /modules/tools/c++/c_gen_iface.hpp | |
parent | 2862cfcb86f857e4a75900974c3ee7c365edd6c0 (diff) |
Preparing reverting Storage
Diffstat (limited to 'modules/tools/c++/c_gen_iface.hpp')
-rw-r--r-- | modules/tools/c++/c_gen_iface.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/tools/c++/c_gen_iface.hpp b/modules/tools/c++/c_gen_iface.hpp index 7dffd04..60389dc 100644 --- a/modules/tools/c++/c_gen_iface.hpp +++ b/modules/tools/c++/c_gen_iface.hpp @@ -391,7 +391,7 @@ struct lang_bind<schema::Primitive<T,L>, binding::SyncC> { { std::string hash_type_str = cfg.prefix + "_" + std::to_string(hash) + "_t"; - auto emp = state.hashes.emplace(std::make_pair(hash, hash_type_str)); + auto emp = state.hashes.emplace(std::make_pair(hash, language_binding_state::info{hash_type_str})); if(emp.second) { /** * We want this id to access the vector @@ -557,7 +557,7 @@ struct lang_bind<schema::Struct<schema::Member<V,K>...>, binding::SyncC> { constexpr uint64_t hash = schema_hash<Schema>::apply(); std::string hash_type_str = cfg.prefix + "_" + std::to_string(hash) + "_t"; - auto emp = state.hashes.emplace(std::make_pair(hash, hash_type_str)); + auto emp = state.hashes.emplace(std::make_pair(hash, language_binding_state::info{hash_type_str})); /** * If successful insertion did happen that means we have no struct def yet. @@ -646,7 +646,7 @@ struct lang_bind<schema::Array<T,D>, binding::SyncC> { constexpr uint32_t hash = schema_hash<Schema>::apply(); std::string hash_type_str = cfg.prefix + "_" + std::to_string(hash) + "_t"; - auto emp = state.hashes.emplace(std::make_pair(hash, hash_type_str)); + auto emp = state.hashes.emplace(std::make_pair(hash, language_binding_state::info{hash_type_str})); if(emp.second){ auto& tpe = state.tp_elements; @@ -1127,7 +1127,7 @@ struct lang_bind<schema::Interface<M...>, binding::SyncC> { constexpr uint64_t hash = schema_hash<Member>::apply(); std::string hash_type_str = cfg.prefix + "_" + std::to_string(hash) + "_t"; - auto emp = state.hashes.emplace(std::make_pair(hash, hash_type_str)); + auto emp = state.hashes.emplace(std::make_pair(hash, language_binding_state::info{hash_type_str})); if(!emp.second){ return make_error<err::invalid_state>("Function should be guaranteed to be unique"); } |