diff --git a/ql/cashflows/couponpricer.hpp b/ql/cashflows/couponpricer.hpp index 3ae46b1ef49..6a4f43acfd8 100644 --- a/ql/cashflows/couponpricer.hpp +++ b/ql/cashflows/couponpricer.hpp @@ -146,7 +146,7 @@ namespace QuantLib { probably won't. Deprecated in version 1.25. */ - QL_DEPRECATED + [[deprecated]] Real spreadLegValue_; private: diff --git a/ql/cashflows/cpicoupon.hpp b/ql/cashflows/cpicoupon.hpp index 263eeb69721..54a39dad37d 100644 --- a/ql/cashflows/cpicoupon.hpp +++ b/ql/cashflows/cpicoupon.hpp @@ -71,7 +71,7 @@ namespace QuantLib { /*! \deprecated Use the other constructor instead. Deprecated in version 1.26. */ - QL_DEPRECATED + [[deprecated]] CPICoupon(Real baseCPI, const Date& paymentDate, Real nominal, @@ -114,13 +114,13 @@ namespace QuantLib { /*! \deprecated Use CPI::laggedFixing instead. Deprecated in version 1.26. */ - QL_DEPRECATED + [[deprecated]] Rate indexObservation(const Date& onDate) const; /*! \deprecated Renamed to adjustedIndexGrowth. Deprecated in version 1.26. */ - QL_DEPRECATED + [[deprecated]] Rate adjustedFixing() const; //! index used @@ -142,7 +142,7 @@ namespace QuantLib { /*! \deprecated Use CPI::laggedFixing instead. Deprecated in version 1.26. */ - QL_DEPRECATED + [[deprecated]] Rate indexFixing(const Date &) const; }; @@ -164,7 +164,7 @@ namespace QuantLib { /*! \deprecated Use the other constructor. Deprecated in version 1.26. */ - QL_DEPRECATED + [[deprecated]] CPICashFlow(Real notional, const ext::shared_ptr& index, const Date& baseDate, @@ -227,12 +227,12 @@ namespace QuantLib { /*! \deprecated No-op; do not use. Deprecated in version 1.26. */ - QL_DEPRECATED + [[deprecated]] CPILeg& withFixingDays(Natural fixingDays); /*! \deprecated No-op; do not use. Deprecated in version 1.26. */ - QL_DEPRECATED + [[deprecated]] CPILeg& withFixingDays(const std::vector& fixingDays); CPILeg& withObservationInterpolation(CPI::InterpolationType); CPILeg& withSubtractInflationNominal(bool); diff --git a/ql/cashflows/iborcoupon.hpp b/ql/cashflows/iborcoupon.hpp index 52055ecec5a..e105cf6410f 100644 --- a/ql/cashflows/iborcoupon.hpp +++ b/ql/cashflows/iborcoupon.hpp @@ -102,15 +102,15 @@ namespace QuantLib { /*! \deprecated Use IborCouponSettings::Settings::instance().createAtParCoupons() instead Deprecated in version 1.24. */ - QL_DEPRECATED static void createAtParCoupons(); + [[deprecated]] static void createAtParCoupons(); /*! \deprecated Use IborCouponSettings::Settings::instance().createIndexedCoupons() instead Deprecated in version 1.24. */ - QL_DEPRECATED static void createIndexedCoupons(); + [[deprecated]] static void createIndexedCoupons(); /*! \deprecated Use IborCouponSettings::Settings::instance().usingAtParCoupons() instead Deprecated in version 1.24. */ - QL_DEPRECATED static bool usingAtParCoupons(); + [[deprecated]] static bool usingAtParCoupons(); }; diff --git a/ql/cashflows/zeroinflationcashflow.hpp b/ql/cashflows/zeroinflationcashflow.hpp index 6bd8d4296e4..4fa5c090060 100644 --- a/ql/cashflows/zeroinflationcashflow.hpp +++ b/ql/cashflows/zeroinflationcashflow.hpp @@ -52,7 +52,7 @@ namespace QuantLib { /*! \deprecated Use the other constructor. Deprecated in version 1.26. */ - QL_DEPRECATED + [[deprecated]] ZeroInflationCashFlow(Real notional, const ext::shared_ptr& index, CPI::InterpolationType observationInterpolation, diff --git a/ql/experimental/barrieroption/suowangdoublebarrierengine.hpp b/ql/experimental/barrieroption/suowangdoublebarrierengine.hpp index 15371692a3f..82d17c558cc 100644 --- a/ql/experimental/barrieroption/suowangdoublebarrierengine.hpp +++ b/ql/experimental/barrieroption/suowangdoublebarrierengine.hpp @@ -64,7 +64,7 @@ namespace QuantLib { /*! \deprecated Use SuoWangDoubleBarrierEngine instead. Deprecated in version 1.25. */ - QL_DEPRECATED + [[deprecated]] typedef SuoWangDoubleBarrierEngine WulinYongDoubleBarrierEngine; } diff --git a/ql/experimental/credit/riskybond.hpp b/ql/experimental/credit/riskybond.hpp index 8ad94ce97a5..c393dfa0e70 100644 --- a/ql/experimental/credit/riskybond.hpp +++ b/ql/experimental/credit/riskybond.hpp @@ -45,7 +45,7 @@ namespace QuantLib { \deprecated Use RiskyBondEngine with regular bonds instead. Deprecated in version 1.24. */ - class QL_DEPRECATED RiskyBond : public Instrument { + class [[deprecated]] RiskyBond : public Instrument { public: /*! The value is contingent to survival, i.e., the knockout probability is considered. To compute the npv given that @@ -147,7 +147,7 @@ namespace QuantLib { \deprecated Use RiskyBondEngine with regular bonds instead. Deprecated in version 1.24. */ - class QL_DEPRECATED RiskyFixedBond : public RiskyBond { + class [[deprecated]] RiskyFixedBond : public RiskyBond { public: RiskyFixedBond(const std::string& name, const Currency& ccy, @@ -185,7 +185,7 @@ namespace QuantLib { \deprecated Use RiskyBondEngine with regular bonds instead. Deprecated in version 1.24. */ - class QL_DEPRECATED RiskyFloatingBond : public RiskyBond { + class [[deprecated]] RiskyFloatingBond : public RiskyBond { public: RiskyFloatingBond(const std::string& name, const Currency& ccy, diff --git a/ql/experimental/termstructures/crosscurrencyratehelpers.hpp b/ql/experimental/termstructures/crosscurrencyratehelpers.hpp index 9ca47e5c47a..ccee9f8d0aa 100644 --- a/ql/experimental/termstructures/crosscurrencyratehelpers.hpp +++ b/ql/experimental/termstructures/crosscurrencyratehelpers.hpp @@ -120,7 +120,7 @@ namespace QuantLib { /*! \deprecated Use ConstNotionalCrossCurrencyBasisSwapRateHelper instead. Deprecated in version 1.24. */ - QL_DEPRECATED + [[deprecated]] typedef ConstNotionalCrossCurrencyBasisSwapRateHelper CrossCurrencyBasisSwapRateHelper; diff --git a/ql/experimental/termstructures/multicurvesensitivities.hpp b/ql/experimental/termstructures/multicurvesensitivities.hpp index 7d16a480b7a..18cf548542d 100644 --- a/ql/experimental/termstructures/multicurvesensitivities.hpp +++ b/ql/experimental/termstructures/multicurvesensitivities.hpp @@ -61,7 +61,7 @@ quoted par rates. Deprecated in version 1.27. */ -class QL_DEPRECATED MultiCurveSensitivities : public LazyObject { +class [[deprecated]] MultiCurveSensitivities : public LazyObject { private: typedef std::map< std::string, Handle< YieldTermStructure > > curvespec; diff --git a/ql/instruments/fixedratebondforward.hpp b/ql/instruments/fixedratebondforward.hpp index 63a8a9d8258..2eab3577dab 100644 --- a/ql/instruments/fixedratebondforward.hpp +++ b/ql/instruments/fixedratebondforward.hpp @@ -32,7 +32,7 @@ namespace QuantLib { //! %Forward contract on a fixed-rate bond /*! \deprecated Use BondForward instead. */ - class QL_DEPRECATED FixedRateBondForward : public BondForward { + class [[deprecated]] FixedRateBondForward : public BondForward { public: FixedRateBondForward( const Date& valueDate, diff --git a/ql/instruments/forwardrateagreement.hpp b/ql/instruments/forwardrateagreement.hpp index 8195c750c7b..2e3d62b8f7e 100644 --- a/ql/instruments/forwardrateagreement.hpp +++ b/ql/instruments/forwardrateagreement.hpp @@ -93,7 +93,7 @@ namespace QuantLib { /*! \deprecated This used to be inherited from Forward, but it's not correct for FRAs. Deprecated in version 1.25. */ - QL_DEPRECATED + [[deprecated]] Date settlementDate() const; const Calendar& calendar() const; @@ -105,7 +105,7 @@ namespace QuantLib { /*! \deprecated This used to be inherited from Forward, but it doesn't make sense for FRAs. Deprecated in version 1.25. */ - QL_DEPRECATED + [[deprecated]] Handle incomeDiscountCurve() const; Date fixingDate() const; @@ -113,12 +113,12 @@ namespace QuantLib { /*! \deprecated This used to be inherited from Forward, but it doesn't make sense for FRAs. Deprecated in version 1.25. */ - QL_DEPRECATED + [[deprecated]] Real spotIncome(const Handle& incomeDiscountCurve) const; /*! \deprecated This used to be inherited from Forward, but it doesn't make sense for FRAs. Deprecated in version 1.25. */ - QL_DEPRECATED + [[deprecated]] Real spotValue() const; //! Returns the relevant forward rate associated with the FRA term @@ -127,7 +127,7 @@ namespace QuantLib { /*! \deprecated This used to be inherited from Forward, but it doesn't make sense for FRAs. Deprecated in version 1.25. */ - QL_DEPRECATED + [[deprecated]] InterestRate impliedYield(Real underlyingSpotValue, Real forwardValue, Date settlementDate, @@ -137,7 +137,7 @@ namespace QuantLib { /*! \deprecated This used to be inherited from Forward, but it doesn't make sense for FRAs. Deprecated in version 1.25. */ - QL_DEPRECATED + [[deprecated]] virtual Real forwardValue() const; //@} @@ -156,12 +156,12 @@ namespace QuantLib { /*! \deprecated This used to be inherited from Forward, but it doesn't make sense for FRAs. Deprecated in version 1.25. */ - QL_DEPRECATED + [[deprecated]] mutable Real underlyingIncome_; /*! \deprecated This used to be inherited from Forward, but it doesn't make sense for FRAs. Deprecated in version 1.25. */ - QL_DEPRECATED + [[deprecated]] mutable Real underlyingSpotValue_; DayCounter dayCounter_; @@ -171,13 +171,13 @@ namespace QuantLib { /*! \deprecated This used to be inherited from Forward, but it doesn't make sense for FRAs. Deprecated in version 1.25. */ - QL_DEPRECATED + [[deprecated]] Natural settlementDays_; /*! \deprecated This used to be inherited from Forward, but it doesn't make sense for FRAs. Deprecated in version 1.25. */ - QL_DEPRECATED + [[deprecated]] ext::shared_ptr payoff_; //! the valueDate is the date the underlying index starts accruing and the FRA is settled. @@ -189,7 +189,7 @@ namespace QuantLib { /*! \deprecated This used to be inherited from Forward, but it doesn't make sense for FRAs. Deprecated in version 1.25. */ - QL_DEPRECATED + [[deprecated]] Handle incomeDiscountCurve_; private: diff --git a/ql/math/curve.hpp b/ql/math/curve.hpp index bec736d145f..e27ba42c865 100644 --- a/ql/math/curve.hpp +++ b/ql/math/curve.hpp @@ -33,7 +33,7 @@ namespace QuantLib { Copy it in your codebase if you need it. Deprecated in version 1.26. */ - class QL_DEPRECATED Curve { + class [[deprecated]] Curve { public: typedef Real argument_type; typedef Real result_type; diff --git a/ql/math/functional.hpp b/ql/math/functional.hpp index 2792fb26cdb..5f94df02c59 100644 --- a/ql/math/functional.hpp +++ b/ql/math/functional.hpp @@ -37,7 +37,7 @@ namespace QuantLib { Deprecated in version 1.27. */ template - class QL_DEPRECATED constant { + class [[deprecated]] constant { public: typedef T argument_type; typedef U result_type; @@ -51,7 +51,7 @@ namespace QuantLib { Deprecated in version 1.27. */ template - class QL_DEPRECATED identity { + class [[deprecated]] identity { public: typedef T argument_type; typedef T result_type; @@ -65,7 +65,7 @@ namespace QuantLib { Deprecated in version 1.27. */ template - class QL_DEPRECATED square { + class [[deprecated]] square { public: typedef T argument_type; typedef T result_type; @@ -76,7 +76,7 @@ namespace QuantLib { Deprecated in version 1.27. */ template - class QL_DEPRECATED cube { + class [[deprecated]] cube { public: typedef T argument_type; typedef T result_type; @@ -87,7 +87,7 @@ namespace QuantLib { Deprecated in version 1.27. */ template - class QL_DEPRECATED fourth_power { + class [[deprecated]] fourth_power { public: typedef T argument_type; typedef T result_type; @@ -100,7 +100,7 @@ namespace QuantLib { Deprecated in version 1.27. */ template - class QL_DEPRECATED add { + class [[deprecated]] add { T y; public: typedef T argument_type; @@ -113,7 +113,7 @@ namespace QuantLib { Deprecated in version 1.27. */ template - class QL_DEPRECATED subtract { + class [[deprecated]] subtract { T y; public: typedef T argument_type; @@ -126,7 +126,7 @@ namespace QuantLib { Deprecated in version 1.27. */ template - class QL_DEPRECATED subtract_from { + class [[deprecated]] subtract_from { T y; public: typedef T argument_type; @@ -139,7 +139,7 @@ namespace QuantLib { Deprecated in version 1.27. */ template - class QL_DEPRECATED multiply_by { + class [[deprecated]] multiply_by { T y; public: typedef T argument_type; @@ -152,7 +152,7 @@ namespace QuantLib { Deprecated in version 1.27. */ template - class QL_DEPRECATED divide { + class [[deprecated]] divide { T y; public: typedef T argument_type; @@ -165,7 +165,7 @@ namespace QuantLib { Deprecated in version 1.27. */ template - class QL_DEPRECATED divide_by { + class [[deprecated]] divide_by { T y; public: typedef T argument_type; @@ -178,7 +178,7 @@ namespace QuantLib { Deprecated in version 1.27. */ template - class QL_DEPRECATED less_than { + class [[deprecated]] less_than { T y; public: typedef T argument_type; @@ -191,7 +191,7 @@ namespace QuantLib { Deprecated in version 1.27. */ template - class QL_DEPRECATED greater_than { + class [[deprecated]] greater_than { T y; public: typedef T argument_type; @@ -204,7 +204,7 @@ namespace QuantLib { Deprecated in version 1.27. */ template - class QL_DEPRECATED greater_or_equal_to { + class [[deprecated]] greater_or_equal_to { T y; public: typedef T argument_type; @@ -217,7 +217,7 @@ namespace QuantLib { Deprecated in version 1.27. */ template - class QL_DEPRECATED not_zero { + class [[deprecated]] not_zero { public: typedef T argument_type; typedef bool result_type; @@ -228,7 +228,7 @@ namespace QuantLib { Deprecated in version 1.27. */ template - class QL_DEPRECATED not_null { + class [[deprecated]] not_null { T null; public: typedef T argument_type; @@ -242,7 +242,7 @@ namespace QuantLib { /*! \deprecated Use a lambda instead. Deprecated in version 1.27. */ - class QL_DEPRECATED everywhere { + class [[deprecated]] everywhere { public: typedef Real argument_type; typedef bool result_type; @@ -252,7 +252,7 @@ namespace QuantLib { /*! \deprecated Use a lambda instead. Deprecated in version 1.27. */ - class QL_DEPRECATED nowhere { + class [[deprecated]] nowhere { public: typedef Real argument_type; typedef bool result_type; @@ -263,7 +263,7 @@ namespace QuantLib { Deprecated in version 1.27. */ template - class QL_DEPRECATED equal_within { + class [[deprecated]] equal_within { public: typedef T first_argument_type; typedef T second_argument_type; @@ -282,7 +282,7 @@ namespace QuantLib { Deprecated in version 1.27. */ template - class QL_DEPRECATED clipped_function { + class [[deprecated]] clipped_function { public: typedef typename F::argument_type argument_type; typedef typename F::result_type result_type; @@ -300,14 +300,14 @@ namespace QuantLib { */ #if __cplusplus >= 201402L || _MSVC_LANG >= 201402L template - QL_DEPRECATED + [[deprecated]] auto clip(F&& f, R&& r) { return [f_ = std::forward(f), r_ = std::forward(r)](const auto& x) { return r_(x) ? f_(x) : decltype(f_(x)){}; }; } #else QL_DEPRECATED_DISABLE_WARNING template - QL_DEPRECATED + [[deprecated]] clipped_function clip(const F& f, const R& r) { return clipped_function(f,r); } @@ -318,7 +318,7 @@ namespace QuantLib { Deprecated in version 1.27. */ template - class QL_DEPRECATED composed_function { + class [[deprecated]] composed_function { public: typedef typename G::argument_type argument_type; typedef typename F::result_type result_type; @@ -336,14 +336,14 @@ namespace QuantLib { */ #if __cplusplus >= 201402L || _MSVC_LANG >= 201402L template - QL_DEPRECATED + [[deprecated]] auto compose(F&& f, G&& g) { return [f_ = std::forward(f), g_ = std::forward(g)](const auto& x) { return f_(g_(x)); }; } #else QL_DEPRECATED_DISABLE_WARNING template - QL_DEPRECATED + [[deprecated]] composed_function compose(const F& f, const G& g) { return composed_function(f,g); } @@ -354,7 +354,7 @@ namespace QuantLib { Deprecated in version 1.27. */ template - class QL_DEPRECATED binary_compose3_function { + class [[deprecated]] binary_compose3_function { public: typedef typename G::argument_type first_argument_type; typedef typename H::argument_type second_argument_type; @@ -376,14 +376,14 @@ namespace QuantLib { */ #if __cplusplus >= 201402L || _MSVC_LANG >= 201402L template - QL_DEPRECATED + [[deprecated]] auto compose3(F&& f, G&& g, H&& h) { return [f_ = std::forward(f), g_ = std::forward(g), h_ = std::forward(h)](const auto& x, const auto& y) { return f_(g_(x), h_(y)); }; } #else QL_DEPRECATED_DISABLE_WARNING template binary_compose3_function - QL_DEPRECATED + [[deprecated]] compose3(const F& f, const G& g, const H& h) { return binary_compose3_function(f, g, h); } diff --git a/ql/math/lexicographicalview.hpp b/ql/math/lexicographicalview.hpp index 9ed2193ac20..c46f02193d0 100644 --- a/ql/math/lexicographicalview.hpp +++ b/ql/math/lexicographicalview.hpp @@ -34,7 +34,7 @@ namespace QuantLib { Deprecated in version 1.26. */ template - class QL_DEPRECATED LexicographicalView { + class [[deprecated]] LexicographicalView { public: //! attaches the view with the given dimension to a sequence LexicographicalView(const RandomAccessIterator& begin, diff --git a/ql/methods/finitedifferences/pdeshortrate.hpp b/ql/methods/finitedifferences/pdeshortrate.hpp index f94e6dfdcf7..3ddccf3d10b 100644 --- a/ql/methods/finitedifferences/pdeshortrate.hpp +++ b/ql/methods/finitedifferences/pdeshortrate.hpp @@ -34,7 +34,7 @@ namespace QuantLib { /*! \deprecated Use the new finite-differences framework instead. Deprecated in version 1.27. */ - class QL_DEPRECATED PdeShortRate : public PdeSecondOrderParabolic { + class [[deprecated]] PdeShortRate : public PdeSecondOrderParabolic { public: typedef ext::shared_ptr argument_type; diff --git a/ql/methods/finitedifferences/shoutcondition.hpp b/ql/methods/finitedifferences/shoutcondition.hpp index 0b5d0420246..da5b5be56c1 100644 --- a/ql/methods/finitedifferences/shoutcondition.hpp +++ b/ql/methods/finitedifferences/shoutcondition.hpp @@ -36,7 +36,7 @@ namespace QuantLib { /*! \deprecated Use the new finite-differences framework instead. Deprecated in version 1.27. */ - class QL_DEPRECATED ShoutCondition : public StandardStepCondition { + class [[deprecated]] ShoutCondition : public StandardStepCondition { public: ShoutCondition(const Array& intrinsicValues, Time resTime, diff --git a/ql/methods/montecarlo/lsmbasissystem.hpp b/ql/methods/montecarlo/lsmbasissystem.hpp index daa2fb697e1..f6f1e3c37e6 100644 --- a/ql/methods/montecarlo/lsmbasissystem.hpp +++ b/ql/methods/montecarlo/lsmbasissystem.hpp @@ -44,7 +44,7 @@ namespace QuantLib { /*! \deprecated Renamed to PolynomialType. Deprecated in version 1.26. */ - QL_DEPRECATED + [[deprecated]] typedef PolynomialType PolynomType; static std::vector > diff --git a/ql/models/calibrationhelper.hpp b/ql/models/calibrationhelper.hpp index 4521fbc0a93..caaaf2a3b98 100644 --- a/ql/models/calibrationhelper.hpp +++ b/ql/models/calibrationhelper.hpp @@ -103,7 +103,7 @@ namespace QuantLib { `termStructure_` to your derived class. Deprecated in version 1.24. */ - QL_DEPRECATED Handle termStructure_; + [[deprecated]] Handle termStructure_; ext::shared_ptr engine_; const VolatilityType volatilityType_; const Real shift_; diff --git a/ql/models/marketmodels/duffsdeviceinnerproduct.hpp b/ql/models/marketmodels/duffsdeviceinnerproduct.hpp index 6f0ca7f49e5..b200d7c3b82 100644 --- a/ql/models/marketmodels/duffsdeviceinnerproduct.hpp +++ b/ql/models/marketmodels/duffsdeviceinnerproduct.hpp @@ -45,7 +45,7 @@ namespace QuantLib { */ template - QL_DEPRECATED + [[deprecated]] inline T inner_product(InputIterator1 f1, InputIterator1 l1, InputIterator2 f2, T init) { diff --git a/ql/money.hpp b/ql/money.hpp index a12a1c43749..060bef3b17d 100644 --- a/ql/money.hpp +++ b/ql/money.hpp @@ -101,11 +101,11 @@ namespace QuantLib { /*! \deprecated Use Money::Settings::instance().baseCurrency() instead. Deprecated in version 1.24. */ - QL_DEPRECATED static BaseCurrencyProxy baseCurrency; + [[deprecated]] static BaseCurrencyProxy baseCurrency; /*! \deprecated Use Money::Settings::instance().conversionType() instead. Deprecated in version 1.24. */ - QL_DEPRECATED static ConversionTypeProxy conversionType; + [[deprecated]] static ConversionTypeProxy conversionType; }; //! Per-session settings for the Money class diff --git a/ql/patterns/composite.hpp b/ql/patterns/composite.hpp index 6c8c07a0430..7db639024d9 100644 --- a/ql/patterns/composite.hpp +++ b/ql/patterns/composite.hpp @@ -35,7 +35,7 @@ namespace QuantLib { Deprecated in version 1.26. */ template - class QL_DEPRECATED Composite : public T { + class [[deprecated]] Composite : public T { protected: std::list > components_; void add(const ext::shared_ptr& c) { components_.push_back(c); } diff --git a/ql/patterns/observable.hpp b/ql/patterns/observable.hpp index d385739db99..1ddaa3a1077 100644 --- a/ql/patterns/observable.hpp +++ b/ql/patterns/observable.hpp @@ -105,7 +105,7 @@ namespace QuantLib { capture the return value from `registerWith`. Deprecated in version 1.26. */ - QL_DEPRECATED // to be moved to private section, not removed + [[deprecated]] // to be moved to private section, not removed typedef boost::unordered_set > set_type; QL_DEPRECATED_DISABLE_WARNING @@ -279,7 +279,7 @@ namespace QuantLib { the return value from `registerWith`. Deprecated in version 1.26. */ - QL_DEPRECATED // to be moved to private section, not removed + [[deprecated]] // to be moved to private section, not removed typedef boost::unordered_set > set_type; QL_DEPRECATED_DISABLE_WARNING typedef set_type::iterator iterator; @@ -374,7 +374,7 @@ namespace QuantLib { /*! \deprecated Don't use `set_type`; it's not used in the public interface anyway. Deprecated in version 1.26. */ - QL_DEPRECATED // to be moved to private section, not removed + [[deprecated]] // to be moved to private section, not removed typedef boost::unordered_set> set_type; QL_DEPRECATED_DISABLE_WARNING typedef set_type::iterator iterator; diff --git a/ql/pricingengines/vanilla/fdconditions.hpp b/ql/pricingengines/vanilla/fdconditions.hpp index 56fec09d33c..6bce8fc045b 100644 --- a/ql/pricingengines/vanilla/fdconditions.hpp +++ b/ql/pricingengines/vanilla/fdconditions.hpp @@ -37,7 +37,7 @@ namespace QuantLib { Deprecated in version 1.27. */ template - class QL_DEPRECATED FDShoutCondition : public baseEngine { + class [[deprecated]] FDShoutCondition : public baseEngine { public: FDShoutCondition( const ext::shared_ptr& process, diff --git a/ql/pricingengines/vanilla/fddividendengine.hpp b/ql/pricingengines/vanilla/fddividendengine.hpp index 6914835b92f..4343f1ac10d 100644 --- a/ql/pricingengines/vanilla/fddividendengine.hpp +++ b/ql/pricingengines/vanilla/fddividendengine.hpp @@ -34,7 +34,7 @@ namespace QuantLib { Deprecated in version 1.27. */ template