From 8b37098a15005d4163db74d7eac977c593268118 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Tue, 9 Jul 2024 14:10:28 +0200 Subject: Preparing reverting Storage --- modules/tools/c++/c_gen_iface.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/tools/c++/c_gen_iface.hpp') 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, 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...>, binding::SyncC> { constexpr uint64_t hash = schema_hash::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, binding::SyncC> { constexpr uint32_t hash = schema_hash::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, binding::SyncC> { constexpr uint64_t hash = schema_hash::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("Function should be guaranteed to be unique"); } -- cgit v1.2.3