X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e22da6010c6499813ff88c76041cf499ffbf2b67..db90e1631e8edef2c777129b97bb4707990cc911:/src/surf/disk_s19.cpp diff --git a/src/surf/disk_s19.cpp b/src/surf/disk_s19.cpp index 12722e7957..c39c8f924c 100644 --- a/src/surf/disk_s19.cpp +++ b/src/surf/disk_s19.cpp @@ -20,7 +20,7 @@ XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(res_disk); void surf_disk_model_init_default() { - auto disk_model = std::make_unique(); + auto disk_model = std::make_shared(); simgrid::kernel::EngineImpl::get_instance()->add_model(simgrid::kernel::resource::Model::Type::DISK, std::move(disk_model), true); } @@ -29,10 +29,6 @@ namespace simgrid { namespace kernel { namespace resource { -DiskS19Model::DiskS19Model() -{ -} - DiskImpl* DiskS19Model::create_disk(const std::string& name, double read_bandwidth, double write_bandwidth) { return (new DiskS19(name, read_bandwidth, write_bandwidth))->set_model(this);