Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
typo
[simgrid.git] / examples / cpp / io-disk-raw / s4u-io-disk-raw.cpp
index f5ce9dda579c37f2f809bceb4c02595552c532c5..92958f884b2e09c7c21f976a8b8b5ed2b32c8af2 100644 (file)
@@ -59,10 +59,10 @@ int main(int argc, char** argv)
   e.load_platform(argv[1]);
 
   /* - Display Host properties */
-  for (auto h : e.get_all_hosts()) {
+  for (auto const* h : e.get_all_hosts()) {
     XBT_INFO("*** %s properties ****", h->get_cname());
-    for (auto const& kv : *h->get_properties())
-      XBT_INFO("  %s -> %s", kv.first.c_str(), kv.second.c_str());
+    for (auto const& [key, value] : *h->get_properties())
+      XBT_INFO("  %s -> %s", key.c_str(), value.c_str());
   }
 
   sg4::Actor::create("", e.host_by_name("bob"), host);