Boost logo

Boost :

From: Joe Gottman (jgottman_at_[hidden])
Date: 2003-01-09 20:00:33


I have a minor complaint about the boost::char_separator class used in the
tokenizer library. In its constructor it takes several const char *'s as
parameters. This makes it difficult if I want to pass std::string's in. I'm
not sure if the following code is safe:

std::string getSeparatorChars();

boost::char_separator<char> mySeparator(getSeparatorChars().c_str());

Would it be possible to add a constructor to char_separator to take
std::string's?

Joe Gottman


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk