Skip to content

Commit

Permalink
lballabioGH-1748 apply optimization to rate helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
pcaspers committed Aug 5, 2023
1 parent f50411f commit a1af567
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ql/termstructures/yield/oisratehelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ namespace QuantLib {
swap_ = tmp;
}

passThroughNotifications(*swap_, swap_->legs(), true);

earliestDate_ = swap_->startDate();
maturityDate_ = swap_->maturityDate();

Expand Down
2 changes: 2 additions & 0 deletions ql/termstructures/yield/ratehelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,8 @@ namespace QuantLib {
.withFloatingLegEndOfMonth(endOfMonth_)
.withIndexedCoupons(useIndexedCoupons_);

passThroughNotifications(*swap_, swap_->legs(), true);

earliestDate_ = swap_->startDate();
maturityDate_ = swap_->maturityDate();

Expand Down

0 comments on commit a1af567

Please sign in to comment.