X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/656d1d84782545d13a71b9dbf956ef2c69ec3af6..b4b5dfe452c3d7dd084b0241a954162412ff5ae6:/src/smpi/plugins/load_balancer/load_balancer.hpp diff --git a/src/smpi/plugins/load_balancer/load_balancer.hpp b/src/smpi/plugins/load_balancer/load_balancer.hpp index 97c1dc3547..69b2dae594 100644 --- a/src/smpi/plugins/load_balancer/load_balancer.hpp +++ b/src/smpi/plugins/load_balancer/load_balancer.hpp @@ -45,7 +45,7 @@ public: return host_to_actors.count(host); // TODO This is linear in the size of the map. Maybe replace by constant lookup through another map? } - void for_each_actor(simgrid::s4u::Host* host, std::function callback) + void for_each_actor(simgrid::s4u::Host* host, const std::function& callback) { auto range = host_to_actors.equal_range(host); std::for_each(