]> AND Public Git Repository - simgrid.git/blobdiff - src/surf/sg_platf.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Variables captured by copy are constant and cannot be std::move'd.
[simgrid.git] / src / surf / sg_platf.cpp
index fbded0874a5e966fccc233e7f913796981a7f943..42f498c0aa55834454e07bf20610fa402b560651 100644 (file)
@@ -479,7 +479,7 @@ void sg_platf_new_actor(simgrid::kernel::routing::ActorCreationArgs* actor)
 
     try {
       simgrid::kernel::actor::ActorImplPtr new_actor = nullptr;
-      new_actor = simgrid::kernel::actor::ActorImpl::create(arg->name.c_str(), std::move(code), nullptr, host,
+      new_actor = simgrid::kernel::actor::ActorImpl::create(arg->name.c_str(), code, nullptr, host,
                                                             arg->properties.get(), nullptr);
       /* The actor creation will fail if the host is currently dead, but that's fine */
       if (arg->kill_time >= 0)