Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Convert actor-execute to s4u API
[simgrid.git] / teshsuite / simdag / is-router / is-router.cpp
index 0b09725c98dfab8ead51fd64212a7f3500ff5e10..9858c0cac445e0c06737bd1c8b85b1cfa85792d5 100644 (file)
@@ -8,7 +8,7 @@
 #include "simgrid/simdag.h"
 #include "src/kernel/routing/NetPoint.hpp"
 #include <algorithm>
-#include <stdio.h>
+#include <cstdio>
 
 int main(int argc, char **argv)
 {
@@ -41,7 +41,7 @@ int main(int argc, char **argv)
   xbt_dynar_free(&hosts);
 
   std::printf("NetCards count: %zu\n", netcardList.size());
-  for (auto nc : netcardList)
+  for (auto const& nc : netcardList)
     std::printf("   - Seen: \"%s\". Type: %s\n", nc->cname(),
                 nc->isRouter() ? "router" : (nc->isNetZone() ? "netzone" : (nc->isHost() ? "host" : "buggy")));