Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
[simgrid.git] / include / simgrid / s4u / engine.hpp
index 07863e1..dc98207 100644 (file)
@@ -6,6 +6,10 @@
 #ifndef SIMGRID_S4U_ENGINE_HPP
 #define SIMGRID_S4U_ENGINE_HPP
 
+#include <string>
+#include <utility>
+#include <vector>
+
 #include <xbt/base.h>
 #include <xbt/functional.hpp>
 
@@ -64,7 +68,7 @@ public:
   template<class F>
   void registerFunction(const char* name)
   {
-    simgrid::simix::registerFunction(name, [](simgrid::xbt::args args){
+    simgrid::simix::registerFunction(name, [](std::vector<std::string> args){
       return simgrid::simix::ActorCode([args] {
         F code(std::move(args));
         code();
@@ -75,7 +79,7 @@ public:
   template<class F>
   void registerFunction(const char* name, F code)
   {
-    simgrid::simix::registerFunction(name, [code](simgrid::xbt::args args){
+    simgrid::simix::registerFunction(name, [code](std::vector<std::string> args){
       return simgrid::simix::ActorCode([code,args] {
         code(std::move(args));
       });