Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use a reference as parameter for signal callbacks.
[simgrid.git] / include / simgrid / s4u / Io.hpp
index 2b82161..8ac6040 100644 (file)
@@ -10,6 +10,7 @@
 #include <simgrid/s4u/Activity.hpp>
 
 #include <atomic>
+#include <string>
 
 namespace simgrid {
 namespace s4u {
@@ -35,7 +36,7 @@ private:
 public:
   friend XBT_PUBLIC void intrusive_ptr_release(simgrid::s4u::Io* i);
   friend XBT_PUBLIC void intrusive_ptr_add_ref(simgrid::s4u::Io* i);
-  friend simgrid::s4u::Storage; // Factory of IOs
+  friend Storage; // Factory of IOs
 
   ~Io() = default;
 
@@ -51,9 +52,8 @@ public:
 #ifndef DOXYGEN
   XBT_ATTRIB_DEPRECATED_v324("Please use Io::wait_for()") void wait(double t) override { wait_for(t); }
 #endif
+};
 
-private:
-}; // class
 } // namespace s4u
 } // namespace simgrid