Boost logo

Boost Users :

From: Tan, Tom (Shanghai) (TTan_at_[hidden])
Date: 2008-06-15 22:09:54

>I have the following line of code:

> boost::algorithm::split(SplitString, temp, "-"); I get the
following error when trying >to compile using visual c++ 2005:

>error C2064: term does not evaluate to a function taking 1 arguments
finder.hpp 583

>Can anyone tell me what I have done wrong here.


You should be using boost::algorithm::split(SplitString, temp,
is_any_of("-")); the 3rd parameter should be a predicate functor not
string. You need to include <boost/algorithm/string/predicate.hpp> to
use the predefined functor is_any_of().
Hope it helps.

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at