X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3e978b7ee3fb648f19de9aeb4450a98e30dd437b..db7487ee3ab1cac3252f064000752ec1274c1be3:/examples/s4u/basic/s4u_basic_function.cpp diff --git a/examples/s4u/basic/s4u_basic_function.cpp b/examples/s4u/basic/s4u_basic_function.cpp index dd39a93778..c915ed7a37 100644 --- a/examples/s4u/basic/s4u_basic_function.cpp +++ b/examples/s4u/basic/s4u_basic_function.cpp @@ -3,9 +3,12 @@ /* 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 +#include + #include -#include +#include #include "s4u_basic.h" @@ -14,9 +17,9 @@ int main(int argc, char **argv) { e->loadPlatform("../../platforms/two_hosts.xml"); e->registerFunction("worker"); e->registerFunction("master"); - simgrid::xbt::args args; - simgrid::s4u::Actor("worker", simgrid::s4u::Host::by_name("Tremblay"), "worker", args); - simgrid::s4u::Actor("master", simgrid::s4u::Host::by_name("Jupiter"), "master", args); + std::vector args; + simgrid::s4u::Actor::createActor("worker", simgrid::s4u::Host::by_name("Tremblay"), "worker", args); + simgrid::s4u::Actor::createActor("master", simgrid::s4u::Host::by_name("Jupiter"), "master", args); e->run(); return 0; }