is_any_of expects the set of characters and not a single char. So I assume passing either std::string(";") or ";" (instead of ';') should work.
Hope that helps,
Ovanes
Hi,
char sep = ';'
That's all, basically...
Von: Ovanes Markarian <om_boost@keywallet.com>
An: boost-users@lists.boost.org
Gesendet: Montag, den 30. März 2009, 17:44:37 Uhr
Betreff: Re: [Boost-users] Problem using Boost->String->Split
could you please post the whole app code? What is sep?
On Mon, Mar 30, 2009 at 5:16 PM, professor rumsdiegeige <professor_rumsdiegeige@yahoo.com> wrote:
Hello,
using Visual Studio 2005 and Boost 1.31, I'm trying to compile this:
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/split.hpp>
#include <vector>
#include <string>
using namespace boost::algorithm;
typedef vector< string > split_vector_type;
split_vector_type SplitVec;
std::string r = std::string(sc);
boost::algorithm::split( SplitVec, r, boost::algorithm::is_any_of(sep) );
But I get:
error C2039: 'iterator': is not a member of "global namespace'' in iterator.hpp 37
What's wrong here?
Thanx!
Sabine Lorentz
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users