From: Martin Quinson Date: Tue, 13 Jun 2017 19:58:34 +0000 (+0200) Subject: please vera++: don't pass vectors by copy X-Git-Tag: v3.16~116 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/76f61e396704568a26dfb982cf3deb4db1c8ae83 please vera++: don't pass vectors by copy --- diff --git a/include/simgrid/s4u/Actor.hpp b/include/simgrid/s4u/Actor.hpp index d1121ea7c4..6aff62b8f6 100644 --- a/include/simgrid/s4u/Actor.hpp +++ b/include/simgrid/s4u/Actor.hpp @@ -175,10 +175,10 @@ public: */ static ActorPtr createActor(const char* name, s4u::Host* host, std::function code); - static ActorPtr createActor(const char* name, s4u::Host* host, std::function)> code, - std::vector args) + static ActorPtr createActor(const char* name, s4u::Host* host, std::function*)> code, + std::vector* args) { - return createActor(name, host, [code](std::vector args) { code(args); }, args); + return createActor(name, host, [code](std::vector* args) { code(args); }, args); } /** Create an actor using code