23 Sep
2002
23 Sep
'02
11:03 a.m.
Sorry, typo; not_equal_to should be equal_to.
// Johan
"judoka1981"
Hi,
I'm trying to find the first non-space character of a string using boost::bind, but I simply can't get this to compile:
---
static void Trim(std::string& stringToTrim) { std::string::iterator firstNonSpace = std::find_if(stringToTrim.begin(), stringToTrim.end(), boost::bind(std::not_equal_to<int>(), boost::bind(&isspace, _1), 0));
....
---
Am I doing something seriously wrong, or is this a compiler limitation (VC.NET)?
(If anyone has a method to do this without using isspace, I'd be happy to see it).
Thanks // Johan