Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix spurious const_cast.
[simgrid.git] / src / kernel / resource / Resource.hpp
index 4c9e6db..e9b66c5 100644 (file)
@@ -73,7 +73,7 @@ public: /* LMM */
   kernel::lmm::Constraint* constraint() const;
 
 protected:
-  const kernel::lmm::Constraint* constraint_ = nullptr;
+  kernel::lmm::Constraint* const constraint_ = nullptr;
 
   struct Metric {
     double peak;              /**< The peak of the metric, ie its max value */