Logo AND Algorithmique Numérique Distribuée

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