X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/60f34207bab74f1dca91bdf6aae807b9006e7474..db9ef2223acb402e44eec406541e671bfebd5ade:/src/xbt/config.cpp diff --git a/src/xbt/config.cpp b/src/xbt/config.cpp index d61be8721b..c2a5fdbb8a 100644 --- a/src/xbt/config.cpp +++ b/src/xbt/config.cpp @@ -310,7 +310,7 @@ void Config::alias(const std::string& realname, const std::string& aliasname) xbt_assert(aliases.find(aliasname) == aliases.end(), "Alias '%s' already.", aliasname.c_str()); ConfigurationElement* element = this->get_dict_element(realname); xbt_assert(element, "Cannot define an alias to the non-existing option '%s'.", realname.c_str()); - this->aliases.insert({aliasname, element}); + this->aliases.try_emplace(aliasname, element); } /** @brief Displays the declared aliases and their replacement */