Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
please clang
authorSUTER Frederic <frederic.suter@cc.in2p3.fr>
Fri, 16 Apr 2021 12:15:08 +0000 (14:15 +0200)
committerSUTER Frederic <frederic.suter@cc.in2p3.fr>
Fri, 16 Apr 2021 12:15:14 +0000 (14:15 +0200)
src/s4u/s4u_Netzone.cpp

index ce45cb1..e118550 100644 (file)
@@ -145,7 +145,7 @@ NetZone* NetZone::seal()
 
 s4u::Host* NetZone::create_host(const std::string& name, double speed)
 {
-  return create_host(name, {speed});
+  return create_host(name, std::vector<double>{speed});
 }
 
 s4u::Host* NetZone::create_host(const std::string& name, const std::vector<double>& speed_per_pstate)
@@ -166,7 +166,7 @@ s4u::Host* NetZone::create_host(const std::string& name, const std::vector<std::
 
 s4u::Link* NetZone::create_link(const std::string& name, double bandwidth)
 {
-  return create_link(name, {bandwidth});
+  return create_link(name, std::vector<double>{bandwidth});
 }
 
 s4u::Link* NetZone::create_link(const std::string& name, const std::vector<double>& bandwidths)