We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84bc8fb commit a1f5b24Copy full SHA for a1f5b24
1 file changed
OREData/ored/marketdata/yieldcurve.cpp
@@ -1497,7 +1497,7 @@ void YieldCurve::buildBootstrappedCurve(const std::set<std::size_t>& indices) {
1497
auto [minIt, maxIt] =
1498
std::minmax_element(instrumentsPerSegment[i].begin(), instrumentsPerSegment[i].end(),
1499
[](const RateHelperData& h, const RateHelperData& j) {
1500
- return h.rateHelper->pillarDate() < h.rateHelper->pillarDate();
+ return h.rateHelper->pillarDate() < j.rateHelper->pillarDate();
1501
});
1502
minMaxDatePerSegment[i] =
1503
std::make_pair((*minIt).rateHelper->pillarDate(), (*maxIt).rateHelper->pillarDate());
0 commit comments