Boost logo

Boost Users :

From: macrodisk (macrodisk_at_[hidden])
Date: 2002-04-05 13:54:52


Thank you for your reply. The following code gives me the error in
Borland compiler:

boost::char_separator<char> sep(";", boost::keep_empty_tokens);

[C++ Error] CVLZOut1.cpp(23): E2285 Could not find a match
for 'boost::char_separator<char,char_traits<char> >::char_separator
(char *,boost::empty_token_policy)'

but this works fine:
boost::char_separator<char> sep(";", "|", boost::keep_empty_tokens);

I had expected the first version to work too, since
boost::char_separator<char> sep(";");
works fine and I just want to add keep_empty_tokens to this.

Thanks again,

Vijay

--- In Boost-Users_at_y..., Jeremy Siek <jsiek_at_c...> wrote:
>
> In the constructor of the char_separator, you need to specify
> keep_empty_tokens. See
>
> http://www.boost.org/libs/tokenizer/char_separator.htm
>


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