X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/12e37132d1b9b141fa8497e17b0629cfd4173c36..c1b3e440de2150420b08c0bc55a125a0c9eb86bc:/include/simgrid/s4u/Actor.hpp diff --git a/include/simgrid/s4u/Actor.hpp b/include/simgrid/s4u/Actor.hpp index 3b1cffa0cf..b6798d3576 100644 --- a/include/simgrid/s4u/Actor.hpp +++ b/include/simgrid/s4u/Actor.hpp @@ -176,7 +176,7 @@ public: */ template static ActorPtr create(std::string name, s4u::Host* host, F code) { - return create(name, host, std::function(std::move(code))); + return create(std::move(name), host, std::function(std::move(code))); } /** Create an actor using a callable thing and its arguments. @@ -187,7 +187,7 @@ public: typename = typename std::result_of::type> static ActorPtr create(std::string name, s4u::Host* host, F code, Args... args) { - return create(name, host, std::bind(std::move(code), std::move(args)...)); + return create(std::move(name), host, std::bind(std::move(code), std::move(args)...)); } // Create actor from function name: