From: Simon Buchan (simon_at_[hidden])
Date: 2005-10-17 02:42:13


Peter Dimov wrote:
> Jeff Garland wrote:
>
>
>> std::string str1("HeLlO WoRld!");
>> std::to_upper(str1); // str1=="HELLO WORLD!"
>
>
> Opening the to_upper can of worms may not be a good idea. ;-)
>
> std::string str1("weiß");
> std::to_upper(str1); // str1=="WEISS"?
>
You could have string::string() grab the locale() :D