Skip to content

Commit

Permalink
fix: Add noexcept to operator== and operator/= in Constant.h
Browse files Browse the repository at this point in the history
Co-Authored-By: Serg Kryvonos <[email protected]>
  • Loading branch information
devin-ai-integration[bot] and ohhmm committed Feb 15, 2025
1 parent be6c061 commit 27d5dfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions omnn/math/Constant.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ template <class Chld>
}

[[nodiscard]]
bool operator==(const Valuable& v) const override {
bool operator==(const Valuable& v) const noexcept override {
return this->OfSameType(v) || v.operator==(*this);
}

Valuable& operator/=(const Valuable& v) override {
Valuable& operator/=(const Valuable& v) noexcept override {
if (v == *this) {
return this->Become(1);
}
Expand Down

0 comments on commit 27d5dfb

Please sign in to comment.