-/* Copyright (c) 2008-2021. The SimGrid Team.
+/* Copyright (c) 2008-2023. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
h1->route_to(h2, route, &latency);
XBT_INFO("Route size %zu", route.size());
- for (auto link: route) {
+ for (auto const* link : route) {
double bandwidth = link->get_bandwidth();
XBT_INFO(" Link %s: latency = %f, bandwidth = %f", link->get_cname(), link->get_latency(), bandwidth);
if (bandwidth < min_bandwidth || min_bandwidth < 0.0)
h1->route_to(h2, route, &latency);
XBT_INFO(" Route size %zu", route.size());
- for (auto link: route) {
+ for (auto const* link : route) {
double bandwidth = link->get_bandwidth();
XBT_INFO(" Link %s: latency = %f, bandwidth = %f", link->get_cname(), link->get_latency(), bandwidth);
if (bandwidth < min_bandwidth || min_bandwidth < 0.0)