Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
New function xbt_replay_action_get(): Retrieve the function previously associated...
[simgrid.git] / src / xbt / config.cpp
index 476ceff..bbbbf29 100644 (file)
@@ -39,7 +39,7 @@ extern "C" {
 namespace simgrid {
 namespace config {
 
-missing_key_error::~missing_key_error() {}
+missing_key_error::~missing_key_error() = default;
 
 class Config;
 
@@ -392,7 +392,7 @@ void Config::showAliases()
 
   xbt_dict_foreach(this->aliases, dict_cursor, name, dictel)
     names.push_back(name);
-  std::sort(names.begin(), names.end(), ::strcmp);
+  std::sort(names.begin(), names.end());
 
   for (auto name : names)
     printf("   %s: %s\n", name, (*this)[name].getDescription().c_str());
@@ -408,7 +408,7 @@ void Config::help()
 
   xbt_dict_foreach(this->options, dict_cursor, name, variable)
     names.push_back(name);
-  std::sort(names.begin(), names.end(), ::strcmp);
+  std::sort(names.begin(), names.end());
 
   for (auto name : names) {
     variable = (simgrid::config::ConfigurationElement*) xbt_dict_get(this->options, name);