]> AND Public Git Repository - simgrid.git/blobdiff - include/simgrid/kernel/resource/Model.hpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
use CRTP dor resources
[simgrid.git] / include / simgrid / kernel / resource / Model.hpp
index 63c25420298dffdf420bcb82850cbf654249f3ac..39a7cc69356b07056ba3b058d24015dbe2b9465d 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2004-2020. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2004-2021. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -34,7 +34,7 @@ public:
 
   virtual ~Model();
 
-  bool is_update_lazy() { return update_algorithm_ == UpdateAlgo::LAZY; }
+  bool is_update_lazy() const { return update_algorithm_ == UpdateAlgo::LAZY; }
 
   /** @brief Get the set of [actions](@ref Action) in *inited* state */
   Action::StateSet* get_inited_action_set() { return &inited_action_set_; }