Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Const, as usual ;)
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 18 Feb 2021 20:50:12 +0000 (21:50 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 19 Feb 2021 09:19:02 +0000 (10:19 +0100)
teshsuite/models/ptask_L07/ptask_L07.cpp

index e60e3ad..0783ad5 100644 (file)
@@ -14,7 +14,7 @@ namespace sg4 = simgrid::s4u;
 /* We need a separate actor so that it can sleep after each test */
 static void main_dispatcher()
 {
-  sg4::Engine* e = sg4::Engine::get_instance();
+  const sg4::Engine* e = sg4::Engine::get_instance();
   double start_time;
   double end_time;
   std::vector<sg4::Host*> hosts = e->get_all_hosts();