Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Replace redundant type with "auto" (examples/).
[simgrid.git] / examples / s4u / synchro-semaphore / s4u-synchro-semaphore.cpp
index 3921539..ed5a2b8 100644 (file)
@@ -42,7 +42,7 @@ static void consumer()
 
 int main(int argc, char **argv)
 {
-  std::vector<std::string> args = std::vector<std::string>({"one", "two", "three", ""});
+  std::vector<std::string> args({"one", "two", "three", ""});
   simgrid::s4u::Engine e(&argc, argv);
   e.load_platform("../../platforms/two_hosts.xml");
   simgrid::s4u::Actor::create("producer", simgrid::s4u::Host::by_name("Tremblay"), producer, &args);