X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2cff10046c00ef34641f4202364f95173732b483..6e4e5d88c59b12e37b1e49cebf23e50af6482b6a:/src/surf/host_clm03.cpp diff --git a/src/surf/host_clm03.cpp b/src/surf/host_clm03.cpp index c9bb4c50ad..ed428d47de 100644 --- a/src/surf/host_clm03.cpp +++ b/src/surf/host_clm03.cpp @@ -13,7 +13,7 @@ XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(res_host); void surf_host_model_init_current_default() { - auto host_model = std::make_unique(); + auto host_model = std::make_shared(); simgrid::config::set_default("network/crosstraffic", true); simgrid::kernel::EngineImpl::get_instance()->add_model(simgrid::kernel::resource::Model::Type::HOST, std::move(host_model), true); @@ -23,7 +23,7 @@ void surf_host_model_init_current_default() void surf_host_model_init_compound() { - auto host_model = std::make_unique(); + auto host_model = std::make_shared(); simgrid::kernel::EngineImpl::get_instance()->add_model(simgrid::kernel::resource::Model::Type::HOST, std::move(host_model), true); }