I'm working in C++98 and I want to bind std::max
. But I need a functor object to use with std::bind1st
.
I've tried just using std::pointer_to_binary_function
but the problem seems to be that I can't make a functor out of std::max
: https://stackoverflow.com/a/12350574/2642059
I've also tried std::ptr_fun
but I get a similar error.