Skip to content

Commit

Permalink
fix: Remove remaining constexpr specifiers and add noexcept to virtua…
Browse files Browse the repository at this point in the history
…l methods

Co-Authored-By: Serg Kryvonos <[email protected]>
  • Loading branch information
devin-ai-integration[bot] and ohhmm committed Feb 15, 2025
1 parent 4b98ab1 commit be6c061
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions omnn/math/Constant.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,29 +34,29 @@ template <class Chld>
static const/*init*/ Chld GlobalObject;

[[nodiscard]]
constexpr bool IsConstant() const override { return true; }
bool IsConstant() const noexcept override { return true; }
[[nodiscard]]
constexpr bool IsSimple() const override { return true; }
bool IsSimple() const noexcept override { return true; }
[[nodiscard]]
constexpr bool IsPolynomial(const Variable&) const override { return true; }
bool IsPolynomial(const Variable&) const noexcept override { return true; }
[[nodiscard]]
constexpr const PrincipalSurd* PrincipalSurdFactor() const override { return {}; }
const PrincipalSurd* PrincipalSurdFactor() const noexcept override { return {}; }
[[nodiscard]]
constexpr YesNoMaybe IsMultival() const override { return YesNoMaybe::No; }
YesNoMaybe IsMultival() const noexcept override { return YesNoMaybe::No; }
[[nodiscard]]
constexpr YesNoMaybe IsRational() const override { return YesNoMaybe::No; }
YesNoMaybe IsRational() const noexcept override { return YesNoMaybe::No; }
[[nodiscard]]
constexpr bool is_optimized() const override { return true; }
constexpr void optimize() override {}
bool is_optimized() const noexcept override { return true; }
void optimize() noexcept override {}

constexpr const Variable* FindVa() const override {
const Variable* FindVa() const noexcept override {
return {};
}

Valuable* Clone() const noexcept override { return new Chld(); }

[[nodiscard]]
constexpr bool HasVa(const Variable& va) const override {
bool HasVa(const Variable& va) const noexcept override {
return {};
}

Expand Down

0 comments on commit be6c061

Please sign in to comment.