Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
A std::string is ok here.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 29 Aug 2017 19:50:44 +0000 (21:50 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 29 Aug 2017 19:52:33 +0000 (21:52 +0200)
src/surf/sg_platf.cpp

index 219c193..f8d7e4d 100644 (file)
@@ -274,7 +274,7 @@ void sg_platf_new_cluster(ClusterCreationArgs* cluster)
   XBT_DEBUG("<router id=\"%s\"/>", cluster->router_id.c_str());
   if (cluster->router_id.empty()) {
     std::string newid   = std::string(cluster->prefix) + cluster->id + "_router" + cluster->suffix;
-    current_as->router_ = sg_platf_new_router(newid.c_str(), NULL);
+    current_as->router_ = sg_platf_new_router(newid, NULL);
   } else {
     current_as->router_ = sg_platf_new_router(cluster->router_id, NULL);
   }