Skip to content

Commit

Permalink
Fix centos 7 compilation (#403)
Browse files Browse the repository at this point in the history
Signed-off-by: Sébastien LAIGRE <[email protected]>
  • Loading branch information
sebalaig authored and Mathieu BAGUE committed Nov 30, 2021
1 parent 1ac18f7 commit db78e41
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions include/powsybl/iidm/FlowsLimitsHolder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,14 @@ class FlowsLimitsHolder {

FlowsLimitsHolder(const FlowsLimitsHolder&) = default;

FlowsLimitsHolder(FlowsLimitsHolder&&) noexcept = default;
// NOLINTNEXTLINE(performance-noexcept-move-constructor): move constructor of OperationalLimitsHolder is not marked noexcept
FlowsLimitsHolder(FlowsLimitsHolder&&) = default; // NOSONAR

~FlowsLimitsHolder() noexcept = default;

FlowsLimitsHolder& operator=(const FlowsLimitsHolder&) = default;

FlowsLimitsHolder& operator=(FlowsLimitsHolder&&) noexcept = default;
FlowsLimitsHolder& operator=(FlowsLimitsHolder&&) = default;

stdcxx::CReference<ActivePowerLimits> getActivePowerLimits() const;

Expand Down
2 changes: 1 addition & 1 deletion include/powsybl/iidm/IdBasedBusRef.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class IdBasedBusRef : public BusRef {

IdBasedBusRef& operator=(const IdBasedBusRef&) = default;

IdBasedBusRef& operator=(IdBasedBusRef&&) noexcept = default;
IdBasedBusRef& operator=(IdBasedBusRef&&) = default;

protected:
stdcxx::CReference<Bus> resolveByLevel(const Network& network, const TopologyLevel& level) override;
Expand Down
5 changes: 3 additions & 2 deletions include/powsybl/iidm/ThreeWindingsTransformerLeg.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,12 @@ class Leg : public virtual RatioTapChangerHolder, public virtual PhaseTapChanger

Leg(const Leg&) = delete;

Leg(Leg&&) noexcept = default;
// NOLINTNEXTLINE(performance-noexcept-move-constructor): move constructor of FlowsLimitsHolder is not marked noexcept
Leg(Leg&&) = default; // NOSONAR

Leg& operator=(const Leg&) = delete;

Leg& operator=(Leg&&) noexcept = default;
Leg& operator=(Leg&&) = default;

~Leg() noexcept override = default;

Expand Down

0 comments on commit db78e41

Please sign in to comment.