Skip to content

Commit a1f5b24

Browse files
committed
QPR-13714: small fix to comparison function
1 parent 84bc8fb commit a1f5b24

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OREData/ored/marketdata/yieldcurve.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1497,7 +1497,7 @@ void YieldCurve::buildBootstrappedCurve(const std::set<std::size_t>& indices) {
14971497
auto [minIt, maxIt] =
14981498
std::minmax_element(instrumentsPerSegment[i].begin(), instrumentsPerSegment[i].end(),
14991499
[](const RateHelperData& h, const RateHelperData& j) {
1500-
return h.rateHelper->pillarDate() < h.rateHelper->pillarDate();
1500+
return h.rateHelper->pillarDate() < j.rateHelper->pillarDate();
15011501
});
15021502
minMaxDatePerSegment[i] =
15031503
std::make_pair((*minIt).rateHelper->pillarDate(), (*maxIt).rateHelper->pillarDate());

0 commit comments

Comments
 (0)