X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/901293dfbce6b7e0f555dbdc53358aa347fd1a3d..6bb8549789b7ac183f0c9ad041fc34a466aeb83d:/src/simix/smx_deployment.cpp diff --git a/src/simix/smx_deployment.cpp b/src/simix/smx_deployment.cpp index 79045d9f53..396d79795f 100644 --- a/src/simix/smx_deployment.cpp +++ b/src/simix/smx_deployment.cpp @@ -1,13 +1,13 @@ -/* Copyright (c) 2007-2018. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2007-2019. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ +#include "simgrid/Exception.hpp" #include "simgrid/s4u/Host.hpp" #include "smx_private.hpp" #include "src/surf/xml/platf_private.hpp" // FIXME: KILLME. There must be a better way than mimicking XML here #include -#include #include #include @@ -69,7 +69,7 @@ static simgrid::simix::ActorCodeFactory toActorCodeFactory(xbt_main_func_t code) } static simgrid::simix::ActorCodeFactory toActorCodeFactory(void (*code)(std::vector)) { - return [code](std::vector args) { return simgrid::xbt::wrap_main(code, std::move(args)); }; + return [code](std::vector args) { return std::bind(std::move(code), std::move(args)); }; } /**