Skip to content

Commit

Permalink
Merge pull request #24747 from gartung/RecoBTag-TrackProbability-stri…
Browse files Browse the repository at this point in the history
…ctcxx17

RecoBTag/TrackProbability: replace bind1st removed from strict implementations of std=c++17 with equivalent lambda.
  • Loading branch information
cmsbuild committed Oct 1, 2018
2 parents f576800 + 392712f commit 64c9e42
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -26,7 +26,7 @@ pair<bool,double> HistogramProbabilityEstimator::probability(bool quality, int i
else if(ipType==1) {it=m_calibration2D->data.begin(); it_end=m_calibration2D->data.end(); }
else return pair<bool,double>(probabilityHistogram ,trackProbability);

found = std::find_if(it,it_end,bind1st(TrackClassFilter(),input));
found = std::find_if(it,it_end,[&input](auto const& c) {return TrackClassFilter()(input,c);});
if(found!=it_end) probabilityHistogram = &found->histogram;
if(!probabilityHistogram)
{
Expand Down

0 comments on commit 64c9e42

Please sign in to comment.