]> AND Public Git Repository - simgrid.git/blobdiff - src/simgrid/host.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
give s4u::Host a cname() that returns a char*
[simgrid.git] / src / simgrid / host.cpp
index 09bb7323e5f6ed112e11e02d2e58ae2da7cd14f3..9ccb263369b661d2d8e0773c9f7052ddd143a70c 100644 (file)
@@ -16,7 +16,7 @@
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(sg_host, sd, "Logging specific to sg_hosts");
 
-extern std::unordered_map<simgrid::xbt::string, simgrid::s4u::Host*>
+extern std::unordered_map<std::string, simgrid::s4u::Host*>
     host_list; // FIXME: don't dupplicate the content of s4u::Host this way
 
 void sg_host_exit()
@@ -61,7 +61,7 @@ sg_host_t *sg_host_list() {
 
 const char *sg_host_get_name(sg_host_t host)
 {
-  return host->name().c_str();
+  return host->cname();
 }
 
 void* sg_host_extension_get(sg_host_t host, size_t ext)