From d24ce826d3d021ce0a11f02e7a731de0f104dd76 Mon Sep 17 00:00:00 2001 From: Florian OMNES Date: Tue, 17 Dec 2024 10:32:03 +0100 Subject: [PATCH] Virtual dtors --- .../constraints/ShortTermStorageCumulation.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/solver/optimisation/constraints/ShortTermStorageCumulation.cpp b/src/solver/optimisation/constraints/ShortTermStorageCumulation.cpp index 981cba91d0..f428b113ee 100644 --- a/src/solver/optimisation/constraints/ShortTermStorageCumulation.cpp +++ b/src/solver/optimisation/constraints/ShortTermStorageCumulation.cpp @@ -32,6 +32,7 @@ class CumulationConstraint const ::ShortTermStorage::PROPERTIES& input) const = 0; virtual std::string name() const = 0; + virtual ~CumulationConstraint() = default; }; class WithdrawalCumulationConstraint: public CumulationConstraint @@ -48,6 +49,8 @@ class WithdrawalCumulationConstraint: public CumulationConstraint { return "WithdrawalSum"; } + + virtual ~WithdrawalCumulationConstraint() = default; }; class InjectionCumulationConstraint: public CumulationConstraint @@ -64,6 +67,8 @@ class InjectionCumulationConstraint: public CumulationConstraint { return "InjectionSum"; } + + virtual ~InjectionCumulationConstraint() = default; }; class NettingCumulationConstraint: public CumulationConstraint @@ -81,6 +86,8 @@ class NettingCumulationConstraint: public CumulationConstraint { return "NettingSum"; } + + virtual ~NettingCumulationConstraint() = default; }; std::unique_ptr cumulationConstraintFromVariable(const std::string& variable)