Skip to content

Commit

Permalink
Merge pull request #1258.
Browse files Browse the repository at this point in the history
Restore defaults in `SofrFutureRateHelper` constructor for backward compatibility
  • Loading branch information
lballabio committed Dec 3, 2021
2 parents 524f3bb + 985ad0d commit 08994cc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ql/termstructures/yield/overnightindexfutureratehelper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ namespace QuantLib {
Year referenceYear,
Frequency referenceFreq,
const ext::shared_ptr<OvernightIndex>& overnightIndex,
const Handle<Quote>& convexityAdjustment,
RateAveraging::Type averagingMethod);
const Handle<Quote>& convexityAdjustment = Handle<Quote>(),
RateAveraging::Type averagingMethod = RateAveraging::Compound);

/*! \deprecated Use the constructor without index and averaging method.
Deprecated in version 1.25.
Expand All @@ -88,8 +88,8 @@ namespace QuantLib {
Year referenceYear,
Frequency referenceFreq,
const ext::shared_ptr<OvernightIndex>& overnightIndex,
Real convexityAdjustment,
RateAveraging::Type averagingMethod);
Real convexityAdjustment = 0.0,
RateAveraging::Type averagingMethod = RateAveraging::Compound);

SofrFutureRateHelper(const Handle<Quote>& price,
Month referenceMonth,
Expand All @@ -101,7 +101,7 @@ namespace QuantLib {
Month referenceMonth,
Year referenceYear,
Frequency referenceFreq,
Real convexityAdjustment = 0);
Real convexityAdjustment = 0.0);
};

}
Expand Down

0 comments on commit 08994cc

Please sign in to comment.