From: Bruno Donassolo Date: Mon, 10 May 2021 14:38:05 +0000 (+0200) Subject: Workaround to unblock. X-Git-Tag: v3.28~292 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/58026916d075dbb27d154b2f2aec74be45f7933c Workaround to unblock. Seems a gcc-11 problem anyway --- diff --git a/src/surf/sg_platf.cpp b/src/surf/sg_platf.cpp index 8add01507a..021a989fdb 100644 --- a/src/surf/sg_platf.cpp +++ b/src/surf/sg_platf.cpp @@ -25,6 +25,7 @@ #include "src/surf/HostImpl.hpp" #include "src/surf/xml/platf_private.hpp" +#include #include XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(surf_parse); @@ -323,8 +324,8 @@ static void sg_platf_new_cluster_flat(simgrid::kernel::routing::ClusterCreationA /* adding routes */ std::vector links_up{limiter, link_up, backbone}; - links_up.erase(std::remove(links_up.begin(), links_up.end(), nullptr), links_up.end()); std::vector links_down{backbone, link_down, limiter}; + links_up.erase(std::remove(links_up.begin(), links_up.end(), nullptr), links_up.end()); links_down.erase(std::remove(links_down.begin(), links_down.end(), nullptr), links_down.end()); zone->add_route(host->get_netpoint(), nullptr, nullptr, nullptr, links_up, false);