Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Const methods.
[simgrid.git] / src / kernel / activity / CommImpl.hpp
index 75b74c0..ad9f4ab 100644 (file)
@@ -55,7 +55,7 @@ public:
   MailboxImpl* get_mailbox() const { return mbox_; }
   long get_mailbox_id() const { return mbox_id_; }
   bool detached() const { return detached_; }
-  bool is_assigned() { return (to_ != nullptr && from_ != nullptr); }
+  bool is_assigned() const { return (to_ != nullptr && from_ != nullptr); }
 
   std::vector<s4u::Link*> get_traversed_links() const;
   void copy_data();