X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d1428a44b2e13f8c22afcb04c3315b6adbe6be85..fe06d3ceaa02056b708bb777ed9973df6744f776:/src/surf/storage_n11.cpp diff --git a/src/surf/storage_n11.cpp b/src/surf/storage_n11.cpp index 78ac82e2d3..6a1f0db720 100644 --- a/src/surf/storage_n11.cpp +++ b/src/surf/storage_n11.cpp @@ -36,12 +36,16 @@ void check_disk_attachment() void surf_storage_model_init_default() { surf_storage_model = new simgrid::surf::StorageN11Model(); - all_existing_models->push_back(surf_storage_model); } namespace simgrid { namespace surf { +StorageN11Model::StorageN11Model() +{ + all_existing_models.push_back(this); +} + StorageImpl* StorageN11Model::createStorage(std::string id, std::string type_id, std::string content_name, std::string attach) {