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] Use const& references in Host::mounted_storages()
[simgrid.git]
/
examples
/
s4u
/
io
/
s4u_io_test.cpp
diff --git
a/examples/s4u/io/s4u_io_test.cpp
b/examples/s4u/io/s4u_io_test.cpp
index
bc0eb0e
..
c2e9757
100644
(file)
--- a/
examples/s4u/io/s4u_io_test.cpp
+++ b/
examples/s4u/io/s4u_io_test.cpp
@@
-16,7
+16,7
@@
public:
myHost(const char*procname, simgrid::s4u::Host *host,int argc, char **argv)
: simgrid::s4u::Actor(procname,host,argc,argv){}
myHost(const char*procname, simgrid::s4u::Host *host,int argc, char **argv)
: simgrid::s4u::Actor(procname,host,argc,argv){}
- void show_info(boost::unordered_map <std::string, simgrid::s4u::Storage*> &mounts) {
+ void show_info(boost::unordered_map <std::string, simgrid::s4u::Storage*>
const
&mounts) {
XBT_INFO("Storage info on %s:",
simgrid::s4u::Host::current()->name().c_str());
XBT_INFO("Storage info on %s:",
simgrid::s4u::Host::current()->name().c_str());
@@
-35,7
+35,7
@@
public:
}
int main(int argc, char **argv) {
}
int main(int argc, char **argv) {
- boost::unordered_map <std::string, simgrid::s4u::Storage *>& mounts =
+ boost::unordered_map <std::string, simgrid::s4u::Storage *>
const
& mounts =
simgrid::s4u::Host::current()->mounted_storages();
show_info(mounts);
simgrid::s4u::Host::current()->mounted_storages();
show_info(mounts);