X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1e383d56c1cfe2e4291180bf5caa771d84f6df02..2bdebbaf8391c3b5dc1cd193491504f83bb2ea3e:/src/s4u/s4u_host.cpp diff --git a/src/s4u/s4u_host.cpp b/src/s4u/s4u_host.cpp index 9c7ceba0e1..8701353b5d 100644 --- a/src/s4u/s4u_host.cpp +++ b/src/s4u/s4u_host.cpp @@ -76,9 +76,9 @@ int Host::getNbPStates() const { return this->pimpl_cpu->getNbPStates(); } -boost::unordered_map &Host::mountedStorages() { +boost::unordered_map &Host::mountedStorages() { if (mounts == NULL) { - mounts = new boost::unordered_map (); + mounts = new boost::unordered_map (); xbt_dict_t dict = this->getMountedStorageList(); @@ -86,7 +86,7 @@ boost::unordered_map &Host::mountedStorages() { char *mountname; char *storagename; xbt_dict_foreach(dict, cursor, mountname, storagename) { - mounts->insert({mountname, Storage::byName(storagename)}); + mounts->insert({mountname, &Storage::byName(storagename)}); } xbt_dict_free(&dict); }