Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix clang build
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Mon, 12 Nov 2018 05:14:01 +0000 (06:14 +0100)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Mon, 12 Nov 2018 05:14:01 +0000 (06:14 +0100)
src/s4u/s4u_Actor.cpp

index 816540b..83ea571 100644 (file)
@@ -47,7 +47,7 @@ ActorPtr Actor::create(std::string name, s4u::Host* host, std::function<void()>
 ActorPtr Actor::create(std::string name, s4u::Host* host, std::string function, std::vector<std::string> args)
 {
   simgrid::simix::ActorCodeFactory& factory = SIMIX_get_actor_code_factory(function);
-  return create(name, host, std::move(factory(std::move(args))));
+  return create(name, host, factory(std::move(args)));
 }
 
 void intrusive_ptr_add_ref(Actor* actor)