Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Pointer to const.
[simgrid.git] / teshsuite / models / cm02-tcpgamma / cm02-tcpgamma.cpp
index 8d1c22c58db2155fc7dbfc0d54dfcbcb442857ed..77375de8d41fa31c585eb280fab0b08d0ed94368 100644 (file)
@@ -86,8 +86,8 @@ int main(int argc, char** argv)
 
   simgrid::s4u::Engine engine(&argc, argv);
   auto* zone  = sg4::create_full_zone("world");
-  auto* host1 = zone->create_host("host1", 1e6)->seal();
-  auto* host2 = zone->create_host("host2", 1e6)->seal();
+  auto const* host1 = zone->create_host("host1", 1e6)->seal();
+  auto const* host2 = zone->create_host("host2", 1e6)->seal();
   testlink    = zone->create_link("L1", 1e10)->seal();
   zone->add_route(host1->get_netpoint(), host2->get_netpoint(), nullptr, nullptr, {sg4::LinkInRoute(testlink)});