Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Whenever possible, use std::move() for parameters (mostly std::string).
[simgrid.git] / teshsuite / s4u / cloud-sharing / cloud-sharing.cpp
index ec01f8c..4121731 100644 (file)
@@ -42,7 +42,7 @@ static int computation_fun(std::vector<std::string> argv)
 static void run_test_process(std::string name, simgrid::s4u::Host *location, int size)
 {
   std::vector<std::string> arg = {std::to_string(size)};
-  simgrid::s4u::Actor::create(name, location, computation_fun, arg);
+  simgrid::s4u::Actor::create(std::move(name), location, computation_fun, arg);
 }
 
 static void test_energy_consumption(std::string name, int nb_cores)