This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: libstdc++-v3 HOWTO: Chapter 22
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: Simon Whomsley <whomsley at avacadcam dot com>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Wed, 31 Jul 2002 11:30:47 -0700
- Subject: Re: libstdc++-v3 HOWTO: Chapter 22
- Organization: Red Hat / San Francisco
- References: <7C7F9AFE-A2D9-11D6-BBAB-0003930EBB12@avacadcam.com>
- Reply-to: bkoz at redhat dot com
> There is a bug in the Toupper example code
> 'http://gcc.gnu.org/onlinedocs/libstdc++/22_locale/howto.html'. In it,
> when constructing Toupper (in main***), the 'std::local("C")' is
> destructed immediately after the 'up' is constructed causing
> 'up::loc' reference to be invalid when std::transform is called. (dito
> Tolower..)
Fixed, thanks.