Skip to content

Commit 9b20b3c

Browse files
author
Damien Barker
committed
QPR-12959 registerWith
1 parent db47aed commit 9b20b3c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

QuantExt/qle/indexes/fallbackovernightindex.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ FallbackOvernightIndex::FallbackOvernightIndex(const QuantLib::ext::shared_ptr<O
3232
originalIndex->fixingCalendar(), originalIndex->dayCounter(), Handle<YieldTermStructure>()) {
3333
iborFallbackIndex_ = std::make_unique<FallbackIborIndex>(originalIndex, rfrIndex, spread, switchDate, useRfrCurve);
3434
termStructure_ = iborFallbackIndex_->forwardingTermStructure();
35+
registerWith(originalIndex);
36+
registerWith(rfrIndex);
3537
}
3638

3739
FallbackOvernightIndex::FallbackOvernightIndex(const QuantLib::ext::shared_ptr<OvernightIndex> originalIndex,
@@ -43,6 +45,9 @@ FallbackOvernightIndex::FallbackOvernightIndex(const QuantLib::ext::shared_ptr<O
4345
iborFallbackIndex_ =
4446
std::make_unique<FallbackIborIndex>(originalIndex, rfrIndex, spread, switchDate, forwardingCurve);
4547
termStructure_ = iborFallbackIndex_->forwardingTermStructure();
48+
registerWith(originalIndex);
49+
registerWith(rfrIndex);
50+
registerWith(forwardingCurve);
4651
}
4752

4853
} // namespace QuantExt

0 commit comments

Comments
 (0)