From 87e6e3c8936559d1c7c85bb53d0b0b626667bfea Mon Sep 17 00:00:00 2001 From: Jonathan Sweemer Date: Sun, 3 Dec 2023 20:31:01 +0900 Subject: [PATCH] Initialize bounds --- ql/math/solver1d.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ql/math/solver1d.hpp b/ql/math/solver1d.hpp index 81d1f896d0c..c09c53e5c30 100644 --- a/ql/math/solver1d.hpp +++ b/ql/math/solver1d.hpp @@ -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; };