Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use std algorithm.
[simgrid.git] / src / kernel / routing / NetZoneImpl.cpp
index 67cf46c..bec7fb8 100644 (file)
@@ -448,8 +448,7 @@ void NetZoneImpl::get_global_route(NetPoint* src, NetPoint* dst,
   /* If source gateway is not our source, we have to recursively find our way up to this point */
   if (src != route.gw_src)
     get_global_route(src, route.gw_src, links, latency);
-  for (auto const& link : route.link_list)
-    links.push_back(link);
+  links.insert(links.end(), begin(route.link_list), end(route.link_list));
 
   /* If dest gateway is not our destination, we have to recursively find our way from this point */
   if (route.gw_dst != dst)