Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
plug an obvious memleak, bummer
[simgrid.git] / src / s4u / s4u_host.cpp
index e7a2c0c..523aee6 100644 (file)
@@ -77,6 +77,10 @@ Host* Host::by_name(std::string name)
   return host_list.at(name); // Will raise a std::out_of_range if the host does not exist
 }
 Host* Host::by_name_or_null(const char* name)
+{
+  return by_name_or_null(std::string(name));
+}
+Host* Host::by_name_or_null(std::string name)
 {
   if (host_list.find(name) == host_list.end())
     return nullptr;