Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
include cleanups in src/s4u
[simgrid.git] / examples / cpp / platform-properties / s4u-platform-properties.cpp
index 6f3f8e3d56e85ff1c9fe2da3bcbaa2d0e2afc06f..63c655e6f0c49f8e8541ab114c82ea1ae46e571e 100644 (file)
@@ -51,7 +51,7 @@ static void test_host(const std::string& hostname)
   /* Restore the value for the next test */
   thehost->set_property(exist, "180");
 
-  auto thezone = thehost->get_englobing_zone();
+  const auto* thezone = thehost->get_englobing_zone();
   XBT_INFO("== Print the properties of the zone '%s' that contains '%s'", thezone->get_cname(), hostname.c_str());
   const std::unordered_map<std::string, std::string>* zoneprops = thezone->get_properties();
   keys.clear();