std::binary_function was deprecated with C++11 and removed in C++17. It provided just two typedefs which in this case were unused.