A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[s4u] Do not use containers of references
[simgrid.git]
/
include
/
simgrid
/
s4u
/
host.hpp
diff --git
a/include/simgrid/s4u/host.hpp
b/include/simgrid/s4u/host.hpp
index
d5c4834
..
3d32534
100644
(file)
--- a/
include/simgrid/s4u/host.hpp
+++ b/
include/simgrid/s4u/host.hpp
@@
-94,11
+94,11
@@
public:
* Do not change the returned value in any way.
*/
// TODO, do not use Storage&, this looks dangerous!
* 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";
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:
void* p_userdata = NULL;
public: