Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
detached really is a boolean.
[simgrid.git] / include / simgrid / s4u / Comm.hpp
index d59fc2a8ead764cf3293447033f98c6e168d2450..e944fabe6411114bb88b0dc682eb029e290ea310 100644 (file)
@@ -10,6 +10,7 @@
 #include <simgrid/s4u/Activity.hpp>
 
 #include <atomic>
+#include <string>
 #include <vector>
 
 namespace simgrid {
@@ -30,7 +31,7 @@ class XBT_PUBLIC Comm : public Activity {
   std::string tracing_category_       = "";
   std::atomic_int_fast32_t refcount_{0};
   /* FIXME: expose these elements in the API */
-  int detached_                                                           = 0;
+  bool detached_                                                          = false;
   int (*match_fun_)(void*, void*, kernel::activity::CommImpl*)            = nullptr;
   void (*clean_fun_)(void*)                                               = nullptr;
   void (*copy_data_function_)(kernel::activity::CommImpl*, void*, size_t) = nullptr;