You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As the title says, how to remove a element from a ordered table? After a bit of searching I've found a solution for toml::value but seems it doesn't work for the ordered_type_config.
auto data = toml::parse<toml::ordered_type_config>(manifestPath);
auto &deps = data["dependencies"];
if (deps.contains(name)) {
// No member named 'erase' in 'toml::ordered_map<std::basic_string<char>, toml::basic_value<toml::ordered_type_config>>'
deps.as_table().erase(name);
}
The text was updated successfully, but these errors were encountered:
As the title says, how to remove a element from a ordered table? After a bit of searching I've found a solution for
toml::value
but seems it doesn't work for theordered_type_config
.The text was updated successfully, but these errors were encountered: