From 76f61e396704568a26dfb982cf3deb4db1c8ae83 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Tue, 13 Jun 2017 21:58:34 +0200 Subject: [PATCH 1/1] please vera++: don't pass vectors by copy --- include/simgrid/s4u/Actor.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.20.1