|
Boost : |
From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2004-04-02 13:58:32
> > That's right. It's basic_string fault, which should've used char_traits
by
> > name in basic_string implementation.
>
> I don't want to turn this into a std::string discussion, but if
> basic_string used char_traits by name, how would you define two
> different string types using char*, one with case-sensitive comparison
> and one without? With basic_string the way it is, it's possible; the way
> you're proposing, I don't see how to do it.
Look under "Numeric convertion lib comments" thread for more details, but
short answer: don't. If you need case insensitive comparison use external
predicate. No reason to change string type for that.
Gennadiy.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk