Skip to content

Commit

Permalink
Actually deprecate method deprecated only in comment (#1995)
Browse files Browse the repository at this point in the history
  • Loading branch information
lballabio authored Jun 23, 2024
2 parents b8ad67a + 63d2e45 commit ce85bb5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion ql/cashflows/cashflows.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<YieldTermStructure>& d,
Real npv,
Expand Down
2 changes: 1 addition & 1 deletion ql/pricingengines/bond/bondfunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ce85bb5

Please sign in to comment.