Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add const attribute.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sat, 9 Feb 2019 14:39:44 +0000 (15:39 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sat, 9 Feb 2019 14:39:44 +0000 (15:39 +0100)
include/simgrid/s4u/Link.hpp
src/s4u/s4u_Link.cpp

index f713c35..c34383a 100644 (file)
@@ -60,9 +60,9 @@ public:
   bool is_used();
 
   void turn_on();
-  bool is_on();
+  bool is_on() const;
   void turn_off();
-  bool is_off();
+  bool is_off() const;
 
   void* get_data(); /** Should be used only from the C interface. Prefer extensions in C++ */
   void set_data(void* d);
index 20cf1d1..b3470e5 100644 (file)
@@ -78,11 +78,11 @@ void Link::turn_off()
   simgrid::simix::simcall([this]() { this->pimpl_->turn_off(); });
 }
 
-bool Link::is_on()
+bool Link::is_on() const
 {
   return this->pimpl_->is_on();
 }
-bool Link::is_off()
+bool Link::is_off() const
 {
   return this->pimpl_->is_off();
 }