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(
Alternatively, you might use std::not_fn:
static inline std::string <rim(std::string &s) { s.erase(s.begin(), std::find_if(s.begin(), s.end(), std::not_fn(static_cast(std::isspace)))); return s; }