Skip to content

Replace deprecated std::unary_function

std::unary_function has been deprecated since C++11 and removed in C++17. A standard way to replace it in code is to explicitly list the member typedefs (see, e.g., https://stackoverflow.com/a/33115140 for std::binary_function), which is what is done in this commit. This makes the code future-proof and removes a lot of warnings when compiling.

Merge request reports