Skip to content

Commit

Permalink
fix: Add noexcept to IsMultiplicationSimplifiable and sq 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 86cb0ac commit 00bbe2f
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 @@ -85,11 +85,11 @@ template <class Chld>
return this->Become(Product{*this,v});
}

Valuable& sq() override {
Valuable& sq() noexcept override {
return this->Become(Exponentiation{*this, 2});
}

std::pair<bool, Valuable> IsMultiplicationSimplifiable(const Valuable& v) const override {
std::pair<bool, Valuable> IsMultiplicationSimplifiable(const Valuable& v) const noexcept override {
std::pair<bool, Valuable> is;
is.first = v.IsConstant();
if (is.first) {
Expand Down

0 comments on commit 00bbe2f

Please sign in to comment.