Skip to content

Commit

Permalink
Merge pull request #24745 from gartung/RecoTracker-TkTrackingRegions-…
Browse files Browse the repository at this point in the history
…strictcxx17

RecoTracker/TkTrackingRegions: replace functions removed in strict std=c++17 with equivalent lambda
  • Loading branch information
cmsbuild committed Oct 1, 2018
2 parents 74ed5a9 + d9ef657 commit f8f1171
Showing 1 changed file with 1 addition and 4 deletions.
Expand Up @@ -845,8 +845,6 @@ bool PixelInactiveAreaFinder::detWorks(det_t det){
}
PixelInactiveAreaFinder::DetGroup PixelInactiveAreaFinder::badAdjecentDetsBarrel(const det_t & det){
using std::remove_if;
using std::bind1st;
using std::mem_fun;

DetGroup adj;
auto const tTopo = trackerTopology_;
Expand All @@ -870,8 +868,7 @@ PixelInactiveAreaFinder::DetGroup PixelInactiveAreaFinder::badAdjecentDetsBarrel
adj.push_back( tTopo->pxbDetId( layer, ladder, module-1 )() );
}
//remove working detectors from list
adj.erase(remove_if(adj.begin(),adj.end(),bind1st(
mem_fun(&PixelInactiveAreaFinder::detWorks),this)),adj.end());
adj.erase(remove_if(adj.begin(),adj.end(), [&](auto c) {return this->detWorks(c);}), adj.end());
return adj;
}
PixelInactiveAreaFinder::DetGroup PixelInactiveAreaFinder::badAdjecentDetsEndcap(const det_t & det){
Expand Down

0 comments on commit f8f1171

Please sign in to comment.