From 6e41eb8cf6c7f268f06c0d08fa6899d72697920b Mon Sep 17 00:00:00 2001 From: Luigi Ballabio Date: Thu, 25 Jan 2024 14:43:02 +0100 Subject: [PATCH] Avoid gcc issue --- ql/termstructures/inflation/piecewisezeroinflationcurve.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ql/termstructures/inflation/piecewisezeroinflationcurve.hpp b/ql/termstructures/inflation/piecewisezeroinflationcurve.hpp index bba407fe348..e91d55b61b6 100644 --- a/ql/termstructures/inflation/piecewisezeroinflationcurve.hpp +++ b/ql/termstructures/inflation/piecewisezeroinflationcurve.hpp @@ -69,6 +69,8 @@ namespace QuantLib { bootstrap_.setup(this); } + QL_DEPRECATED_DISABLE_WARNING + /*! \deprecated Use the other overload and pass the base date directly instead of using a lag. A base rate is not needed. Deprecated in version 1.34. @@ -84,7 +86,6 @@ namespace QuantLib { std::vector > instruments, Real accuracy = 1.0e-12, const Interpolator& i = Interpolator()) - QL_DEPRECATED_DISABLE_WARNING : base_curve(referenceDate, calendar, dayCounter, @@ -95,6 +96,7 @@ namespace QuantLib { instruments_(std::move(instruments)), accuracy_(accuracy) { bootstrap_.setup(this); } + QL_DEPRECATED_ENABLE_WARNING //@}