Skip to content

Commit

Permalink
Initialize bounds in Solver1D (#1842)
Browse files Browse the repository at this point in the history
  • Loading branch information
lballabio authored Dec 4, 2023
2 parents 1b2fcf5 + 87e6e3c commit 261bbc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ql/math/solver1d.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ namespace QuantLib {
mutable Size evaluationNumber_;
private:
Real enforceBounds_(Real x) const;
Real lowerBound_, upperBound_;
Real lowerBound_{}, upperBound_{};
bool lowerBoundEnforced_ = false, upperBoundEnforced_ = false;
};

Expand Down

0 comments on commit 261bbc1

Please sign in to comment.