File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -645,9 +645,9 @@ void FixingDateGetter::visit(QuantExt::CappedFlooredOvernightIndexedCoupon& c) {
645645 if (pov){
646646 QuantLib::ext::shared_ptr<QuantLib::IborIndex> baseIndex = pov->getBaseIndex ();
647647 // Create a window of fixings [min, max_] to cover all potential fixings
648- auto test = c.underlying ()->fixingDates ();
649- std::sort (test .begin (), test .end ());
650- QuantLib::Date minDate = test .front () > Settings::instance ().evaluationDate ()?Settings::instance ().evaluationDate ():test .front ();
648+ auto fixingDates = c.underlying ()->fixingDates ();
649+ std::sort (fixingDates .begin (), fixingDates .end ());
650+ QuantLib::Date minDate = fixingDates .front () > Settings::instance ().evaluationDate ()?Settings::instance ().evaluationDate ():fixingDates .front ();
651651 std::vector<QuantLib::Date> businessDates;
652652 for (QuantLib::Date d = minDate; d <= max_; d = d + 1 ) {
653653 if (baseIndex->fixingCalendar ().isBusinessDay (d)) {
You can’t perform that action at this time.
0 commit comments