Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Declare methods 'const'.
[simgrid.git] / include / simgrid / s4u / Activity.hpp
index 1881740..9bd646b 100644 (file)
@@ -88,7 +88,7 @@ public:
   /** Retrieve the current state of the activity */
   Activity::State get_state() const { return state_; }
   /** Return a string representation of the activity's state (one of INITED, STARTING, STARTED, CANCELED, FINISHED) */
-  const char* get_state_str();
+  const char* get_state_str() const;
   void set_state(Activity::State state) { state_ = state; }
   /** Tests whether the given activity is terminated yet. */
   virtual bool test();