Remove usage of std::binary_function
The usage of std::binary_function is really old legacy to define the functions used in STL algorithms like std::sort. std::binary_function was deprecated with C++11 and removed from C++ with C++17. Obviously it is still supported by some compilers since compilation errors only occured with newer Apple clang versions. Switch to the modern implementation using lambdas in the STL algorithms. This also increase code readability since the code is located at the same place where it is used. The change was confirmed to not introduce changes in the output by comparing the produced TTrees before and after the commit in all produced ROOT files.
Showing
- core/base/CbmHistManager.cxx 3 additions, 9 deletionscore/base/CbmHistManager.cxx
- reco/detectors/rich/finder/CbmRichRingFinderData.h 1 addition, 36 deletionsreco/detectors/rich/finder/CbmRichRingFinderData.h
- reco/detectors/rich/finder/CbmRichRingFinderHoughImpl.cxx 27 additions, 12 deletionsreco/detectors/rich/finder/CbmRichRingFinderHoughImpl.cxx
- reco/littrack/parallel/LitScalTrack.h 5 additions, 64 deletionsreco/littrack/parallel/LitScalTrack.h
- reco/littrack/parallel/LitTrackSelection.h 37 additions, 13 deletionsreco/littrack/parallel/LitTrackSelection.h
- reco/littrack/std/data/CbmLitHit.h 3 additions, 20 deletionsreco/littrack/std/data/CbmLitHit.h
- reco/littrack/std/data/CbmLitTrack.h 14 additions, 65 deletionsreco/littrack/std/data/CbmLitTrack.h
- reco/littrack/std/selection/CbmLitQualitySort.cxx 27 additions, 9 deletionsreco/littrack/std/selection/CbmLitQualitySort.cxx
Loading
Please register or sign in to comment