Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Engine*::add_model: from unique to shared_ptr
[simgrid.git] / src / s4u / s4u_Engine.cpp
index 6bc9b00..2450270 100644 (file)
@@ -74,7 +74,7 @@ double Engine::get_clock()
 }
 
 void Engine::add_model(simgrid::kernel::resource::Model::Type type,
-                       std::unique_ptr<simgrid::kernel::resource::Model> model)
+                       std::shared_ptr<simgrid::kernel::resource::Model> model)
 {
   simgrid::kernel::actor::simcall([this, type, &model] { pimpl->add_model(type, std::move(model)); });
 }