FreeFem / FreeFem-sources

FreeFEM source code
https://freefem.org/
Other
746 stars 187 forks source link

Remove obsolete unary and binary functions. #263

Closed mzf-guest closed 1 year ago

mzf-guest commented 1 year ago

The unary_function and binary_function are deprecated since C++11 and removed in C++17 according to https://en.cppreference.com/w/cpp/utility/functional/unary_function

Building with gcc 12 triggers lots of warnings on stderr when building Debian package auto-tests: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1033702

This Pull Request removes these functions and adds the appropriate using to keep compatibility.

prj- commented 1 year ago

Thanks!