Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Field is initialized by constructor.
[simgrid.git] / include / simgrid / kernel / resource / Resource.hpp
index fa581d1..2ab078f 100644 (file)
@@ -58,7 +58,7 @@ public:
   /** @brief Check if the current Resource is active */
   virtual bool is_on() const;
   /** @brief Check if the current Resource is shut down */
-  virtual bool is_off() const;
+  XBT_ATTRIB_DEPRECATED_v325("Please use !is_on()") virtual bool is_off() const;
   /** @brief Turn on the current Resource */
   virtual void turn_on();
   /** @brief Turn off the current Resource */
@@ -81,7 +81,7 @@ public: /* LMM */
   lmm::Constraint* get_constraint() const;
 
 private:
-  kernel::lmm::Constraint* const constraint_ = nullptr;
+  kernel::lmm::Constraint* const constraint_;
 
 public:
   profile::Event* state_event_ = nullptr;