$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: judoka1981 (johan.nilsson_at_[hidden])
Date: 2002-09-23 04:44:12
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