eic / eic-smear

fast simulation tool originally developed by the BNL EIC task force
GNU General Public License v3.0
2 stars 11 forks source link

Can't compile with C++17 and newer #28

Closed veprbl closed 9 months ago

veprbl commented 9 months ago

Produces errors like:

src/erhic/Kinematics.cxx:80:46: error: no template named 'unary_function' in namespace 'std'; did yo
struct EnergyFromMomentumAndId : public std::unary_function<const Particle*,
                                        ~~~~~^~~~~~~~~~~~~~
                                             __unary_function

https://en.cppreference.com/w/cpp/utility/functional/unary_function

veprbl commented 9 months ago

That was on the old version, must have been fixed by b7c1db51c443adaf0b89e60c62142e4184748829.

kkauder commented 9 months ago

I'm glad I could fix this retroactively :)

veprbl commented 8 months ago

Yes. Very good KPI, indeed :)