From 9bcf9c35b4722137c500688344ff8b23db01c1dd Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Sat, 9 Feb 2019 15:39:44 +0100 Subject: [PATCH] Cosmetics. --- src/surf/network_cm02.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/surf/network_cm02.cpp b/src/surf/network_cm02.cpp index f7679d2756..1c75de1fb1 100644 --- a/src/surf/network_cm02.cpp +++ b/src/surf/network_cm02.cpp @@ -222,12 +222,12 @@ Action* NetworkCm02Model::communicate(s4u::Host* src, s4u::Host* dst, double siz "You're trying to send data from %s to %s but there is no connecting path between these two hosts.", src->get_cname(), dst->get_cname()); - bool failed = std::any_of(route.begin(), route.end(), [](LinkImpl* link) { return link->is_off(); }); + bool failed = std::any_of(route.begin(), route.end(), [](const LinkImpl* link) { return link->is_off(); }); if (cfg_crosstraffic) { dst->route_to(src, back_route, nullptr); if (not failed) - failed = std::any_of(back_route.begin(), back_route.end(), [](LinkImpl* const& link) { return link->is_off(); }); + failed = std::any_of(back_route.begin(), back_route.end(), [](const LinkImpl* link) { return link->is_off(); }); } NetworkCm02Action *action = new NetworkCm02Action(this, size, failed); -- 2.20.1