I am using std::ptr_fun as follows:
std::ptr_fun
static inline std::string <rim(std::string &s) { s.erase(s.begin(), std::find_if(s.begin(), s.end(
Just use a lambda:
[](unsigned char c){ return !std::isspace(c); }
Note that I changed the argument type to unsigned char, see the notes for std::isspace for why.
unsigned char
std::ptr_fun was deprecated in C++11, and will be removed completely in C++17.