mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-17 00:38:08 +08:00
fix: don't use default ctor when converting to map
This commit is contained in:
@@ -419,7 +419,7 @@ get(const basic_value<C, M, V>& v)
|
||||
T map;
|
||||
for(const auto& kv : v.as_table())
|
||||
{
|
||||
map[key_type(kv.first)] = ::toml::get<mapped_type>(kv.second);
|
||||
map.emplace(key_type(kv.first), get<mapped_type>(kv.second));
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
Reference in New Issue
Block a user