Skip to content

Commit

Permalink
Merge pull request #24700 from gartung/DQMOffline-RecoB-strictcxx17
Browse files Browse the repository at this point in the history
DQMOffline/RecoB: replace bind2nd with equivalent lambda
  • Loading branch information
cmsbuild committed Oct 3, 2018
2 parents e07a28e + 081722e commit 8725e89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DQMOffline/RecoB/src/MatchJet.cc
Expand Up @@ -100,7 +100,7 @@ void MatchJet::matchCollections(

const std::vector<Match>& matches =
matching.match(std::less<double>(),
std::bind2nd(std::less<double>(), maxChi2));
[&](auto &c){ return c < this->maxChi2;});
for(std::vector<Match>::const_iterator iter = matches.begin();
iter != matches.end(); ++iter) {
refToRec[iter->index1] = iter->index2;
Expand Down

0 comments on commit 8725e89

Please sign in to comment.