X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7b20a596a629242418d813ae845fcd64d36fc150..1cce0801abcad7c884f9e72ceda87e36d6635104:/include/simgrid/simix.hpp diff --git a/include/simgrid/simix.hpp b/include/simgrid/simix.hpp index eb92f4262b..d08f865bfe 100644 --- a/include/simgrid/simix.hpp +++ b/include/simgrid/simix.hpp @@ -13,7 +13,6 @@ #include #include #include -#include #include #include @@ -176,7 +175,7 @@ XBT_PUBLIC(void) create_maestro(std::function code); typedef std::function ActorCode; // Create ActorCode based on argv: -typedef std::function ActorCodeFactory; +typedef std::function args)> ActorCodeFactory; XBT_PUBLIC(void) registerFunction(const char* name, ActorCodeFactory factory); @@ -215,12 +214,12 @@ XBT_PUBLIC(smx_process_t) simcall_process_create(const char *name, xbt_dict_t properties, int auto_restart); -XBT_PUBLIC(smx_timer_t) SIMIX_timer_set(double date, std::packaged_task callback); +XBT_PUBLIC(smx_timer_t) SIMIX_timer_set(double date, simgrid::xbt::Task callback); template inline XBT_PUBLIC(smx_timer_t) SIMIX_timer_set(double date, F callback) { - return SIMIX_timer_set(date, std::packaged_task(std::move(callback))); + return SIMIX_timer_set(date, simgrid::xbt::Task(std::move(callback))); } template inline