diff --git a/ql/pricingengines/bond/bondfunctions.hpp b/ql/pricingengines/bond/bondfunctions.hpp index ccf65ca4ec5..6f0d3dfe640 100644 --- a/ql/pricingengines/bond/bondfunctions.hpp +++ b/ql/pricingengines/bond/bondfunctions.hpp @@ -121,8 +121,8 @@ namespace QuantLib { [[deprecated("Use the overload taking a Bond::Price argument instead")]] static Rate atmRate(const Bond& bond, const YieldTermStructure& discountCurve, - Date settlementDate = Date(), - Real cleanPrice = Null()); + Date settlementDate, + Real cleanPrice); static Rate atmRate(const Bond& bond, const YieldTermStructure& discountCurve, Date settlementDate = Date(),