X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8ec63ad549cad884dad1c08e901671496d548a4d..f1671393f75bd162d50e64573db72c0e80cd137f:/examples/s4u/io-file-system/s4u-io-file-system.cpp diff --git a/examples/s4u/io-file-system/s4u-io-file-system.cpp b/examples/s4u/io-file-system/s4u-io-file-system.cpp index 46f1e02851..bdc66291b2 100644 --- a/examples/s4u/io-file-system/s4u-io-file-system.cpp +++ b/examples/s4u/io-file-system/s4u-io-file-system.cpp @@ -13,7 +13,7 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(s4u_test, "a sample log category"); class MyHost { public: - void show_info(std::vector const& disks) + void show_info(std::vector const& disks) const { XBT_INFO("Storage info on %s:", simgrid::s4u::Host::current()->get_cname()); @@ -24,7 +24,7 @@ public: } } - void operator()() + void operator()() const { std::vector const& disks = simgrid::s4u::Host::current()->get_disks();