Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Engine*::add_model: from unique to shared_ptr
[simgrid.git] / src / surf / network_ib.cpp
index eedd459..6bd014a 100644 (file)
@@ -69,7 +69,7 @@ static void IB_action_init_callback(simgrid::kernel::resource::NetworkAction& ac
 /*  } */
 void surf_network_model_init_IB()
 {
-  auto net_model = std::make_unique<simgrid::kernel::resource::NetworkIBModel>();
+  auto net_model = std::make_shared<simgrid::kernel::resource::NetworkIBModel>();
   simgrid::kernel::EngineImpl::get_instance()->add_model(simgrid::kernel::resource::Model::Type::NETWORK,
                                                          std::move(net_model), true);