Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix SimGrid-FMI
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Wed, 18 Dec 2019 13:56:22 +0000 (14:56 +0100)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Wed, 18 Dec 2019 13:56:25 +0000 (14:56 +0100)
See https://framagit.org/simgrid/simgrid-FMI/-/jobs/636515

include/simgrid/kernel/resource/Model.hpp
src/kernel/resource/Model.cpp

index e7578ea..ee23a15 100644 (file)
@@ -32,7 +32,7 @@ public:
   Model(const Model&) = delete;
   Model& operator=(const Model&) = delete;
 
-  virtual ~Model() = default;
+  virtual ~Model();
 
   /** @brief Get the set of [actions](@ref Action) in *inited* state */
   Action::StateSet* get_inited_action_set() { return &inited_action_set_; }
index b95f61f..956cb32 100644 (file)
@@ -13,6 +13,7 @@ namespace kernel {
 namespace resource {
 
 Model::Model(Model::UpdateAlgo algo) : update_algorithm_(algo) {}
+Model::~Model() = default; // Don't move this declaration to the header, or it will break external projects such as SimGrid-FMI
 
 Action::ModifiedSet* Model::get_modified_set() const
 {