Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove the TODO done in the previous commit
[simgrid.git] / include / simgrid / s4u / host.hpp
index d5c4834..98ea998 100644 (file)
@@ -93,12 +93,11 @@ public:
         *
         *      Do not change the returned value in any way.
         */
-       // TODO, do not use Storage&, this looks dangerous!
-       boost::unordered_map<std::string, Storage&> &mountedStorages();
+       boost::unordered_map<std::string, Storage*> &mountedStorages();
 
 private:
        simgrid::xbt::string name_ = "noname";
-       boost::unordered_map<std::string, Storage&> *mounts = NULL; // caching
+       boost::unordered_map<std::string, Storage*> *mounts = NULL; // caching
        void* p_userdata = NULL;
 
 public: