Hi:
Cheers.
That worked.
Sean.


From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Tan, Tom (Shanghai)
Sent: 16 June 2008 03:10
To: boost-users@lists.boost.org
Subject: Re: [Boost-users] Error when using the split algorithm

>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.
Tom


__________ Information from ESET NOD32 Antivirus, version of virus signature database 3189 (20080616) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


__________ Information from ESET NOD32 Antivirus, version of virus signature database 3189 (20080616) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com