diff --git a/ql/cashflows/cashflows.hpp b/ql/cashflows/cashflows.hpp index 10e8d18272c..5be9a4736e1 100644 --- a/ql/cashflows/cashflows.hpp +++ b/ql/cashflows/cashflows.hpp @@ -425,7 +425,10 @@ namespace QuantLib { Real accuracy = 1.0e-10, Size maxIterations = 100, Rate guess = 0.0); - //! deprecated implied Z-spread. + /*! \deprecated Use the other overload. + Deprecated in version 1.35. + */ + [[deprecated("Use the other overload")]] static Spread zSpread(const Leg& leg, const ext::shared_ptr& d, Real npv, diff --git a/ql/pricingengines/bond/bondfunctions.cpp b/ql/pricingengines/bond/bondfunctions.cpp index 3a11bc1597f..ef4da471783 100644 --- a/ql/pricingengines/bond/bondfunctions.cpp +++ b/ql/pricingengines/bond/bondfunctions.cpp @@ -578,8 +578,8 @@ namespace QuantLib { dirtyPrice /= 100.0 / bond.notional(settlement); return CashFlows::zSpread(bond.cashflows(), - d, dirtyPrice, + d, dayCounter, compounding, frequency, false, settlement, settlement, accuracy, maxIterations, guess);