X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/481767c4346465fe55dd6f37a0df99a85f137d09..ad0b70bedee1e2a4d5310f44e66dc5495e295e81:/src/kernel/routing/NetZoneImpl.cpp diff --git a/src/kernel/routing/NetZoneImpl.cpp b/src/kernel/routing/NetZoneImpl.cpp index 1de62fd587..0d511d79af 100644 --- a/src/kernel/routing/NetZoneImpl.cpp +++ b/src/kernel/routing/NetZoneImpl.cpp @@ -112,11 +112,11 @@ NetZoneImpl::~NetZoneImpl() /* Since hosts_ and links_ are a std::map, the hosts are destroyed in the lexicographic order, which ensures that the * output is reproducible. */ - for (auto& [_, host] : hosts_) { + for (auto const& [_, host] : hosts_) { host->destroy(); } hosts_.clear(); - for (auto& [_, link] : links_) { + for (auto const& [_, link] : links_) { link->destroy(); } links_.clear();