Boost logo

Boost Users :

From: Johan Nilsson (johan.nilsson_at_[hidden])
Date: 2002-09-23 06:03:51


Sorry, typo; not_equal_to should be equal_to.

// Johan

"judoka1981" <johan.nilsson_at_[hidden]> wrote in message
news:ammnpc+7vpk_at_eGroups.com...
> 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
>
>
>


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net