X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2865125a12cae86515e21999f32efe33de513646..a7cc502f224afb96f0203b94759cd0dabebf8de5:/include/xbt/config.hpp diff --git a/include/xbt/config.hpp b/include/xbt/config.hpp index 589c8dce49..bb5ee91f36 100644 --- a/include/xbt/config.hpp +++ b/include/xbt/config.hpp @@ -173,8 +173,8 @@ bind_flag(std::string& value, const char* name, const char* description, mesg += std::string("Possible values for option ") + name + ":\n"; else mesg += "Invalid value '" + val + "' for option " + name + ". Possible values:\n"; - for (auto const& kv : valid_values) - mesg += " - '" + kv.first + "': " + kv.second + (kv.first == value ? " <=== DEFAULT" : "") + "\n"; + for (auto const& [v, descr] : valid_values) + mesg += " - '" + v + "': " + descr + (v == value ? " <=== DEFAULT" : "") + "\n"; xbt_die("%s", mesg.c_str()); })); }