Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
dynar to std::vector
[simgrid.git] / src / surf / cpu_cas01.cpp
index d361db6..6321e49 100644 (file)
@@ -26,10 +26,10 @@ void surf_cpu_model_init_Cas01()
   }
 
   surf_cpu_model_pm = new simgrid::surf::CpuCas01Model();
   }
 
   surf_cpu_model_pm = new simgrid::surf::CpuCas01Model();
-  xbt_dynar_push(all_existing_models, &surf_cpu_model_pm);
+  all_existing_models->push_back(surf_cpu_model_pm);
 
   surf_cpu_model_vm  = new simgrid::surf::CpuCas01Model();
 
   surf_cpu_model_vm  = new simgrid::surf::CpuCas01Model();
-  xbt_dynar_push(all_existing_models, &surf_cpu_model_vm);
+  all_existing_models->push_back(surf_cpu_model_vm);
 }
 
 namespace simgrid {
 }
 
 namespace simgrid {