From 58026916d075dbb27d154b2f2aec74be45f7933c Mon Sep 17 00:00:00 2001 From: Bruno Donassolo Date: Mon, 10 May 2021 16:38:05 +0200 Subject: [PATCH] Workaround to unblock. Seems a gcc-11 problem anyway --- src/surf/sg_platf.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.20.1