X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e3a1cf8d29cef5eaf730b485da389cff9319fa56..b7b9fb781045188e65beb5c1dfc391a2d21e5472:/src/kernel/context/ContextBoost.cpp diff --git a/src/kernel/context/ContextBoost.cpp b/src/kernel/context/ContextBoost.cpp index 95743c6f2b..ee99def4c2 100644 --- a/src/kernel/context/ContextBoost.cpp +++ b/src/kernel/context/ContextBoost.cpp @@ -15,14 +15,14 @@ namespace kernel { namespace context { // BoostContextFactory -smx_context_t BoostContextFactory::create_context(std::function code, smx_actor_t actor) +smx_context_t BoostContextFactory::create_context(std::function&& code, smx_actor_t actor) { return this->new_context(std::move(code), actor, this); } // BoostContext -BoostContext::BoostContext(std::function code, smx_actor_t actor, SwappedContextFactory* factory) +BoostContext::BoostContext(std::function&& code, smx_actor_t actor, SwappedContextFactory* factory) : SwappedContext(std::move(code), actor, factory) {