Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Enforce the ns3 timings for the latest version of ns3, and just execute older versions
[simgrid.git] / examples / cpp / exec-waitany / s4u-exec-waitany.cpp
index 1a2b87d53b4d50937f469caa352a7526c0fad501..c30dd319a97442cdef80b0ae0c5058e83f5cab86 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2019-2022. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2019-2023. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -17,7 +17,7 @@ static void worker(bool with_timeout)
   std::vector<sg4::ExecPtr> pending_executions;
 
   for (int i = 0; i < 3; i++) {
-    std::string name = std::string("Exec-") + std::to_string(i);
+    std::string name = "Exec-" + std::to_string(i);
     double amount    = (6 * (i % 2) + i + 1) * sg4::this_actor::get_host()->get_speed();
 
     sg4::ExecPtr exec = sg4::this_actor::exec_init(amount)->set_name(name);