cosmicrays / hermes

HERMES is a publicly available computational framework for the line of sight integration over galactic radiative processes which creates sky maps in the HEALPix-compatibile format.
GNU General Public License v3.0
23 stars 9 forks source link

deprecated function in CacheTools #36

Open carmeloevoli opened 1 year ago

carmeloevoli commented 1 year ago
CacheTools.h:30:32: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations]

CacheTools.h:40:33: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations]

warning found both for Mac and GNU compliers, we should find an alternative at some point.

adundovi commented 1 year ago

These can be simply removed [1] and the code will continue to work in C++17.