
26 Mar
2004
26 Mar
'04
3:26 p.m.
"Gennadiy Rozental" <gennadiy.rozental@thomson.com> wrote in message news:c429pi$h45$1@sea.gmane.org...
We could do something like this. But as you have says yourself (and Herb Sutter in the book ) in majority of the cases it does not worse the trouble. In practice you couldn't change string class globally in whole application to use different comparison. In consequence you will pay with a lot of conversions.
I basically agree, but as I said in a reply to Peter, the required conversions would be minimal in most cases if string functions such as constuctors and assignment operators were liberalized to accept specializations of basic_string with different traits types. Jonathan