This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Segfault in simple use of codecvt<>
- From: "Kristian Spangsege" <kristian dot spangsege at gmail dot com>
- To: "Bo Persson" <bop at gmb dot dk>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Sat, 12 Jan 2008 16:59:15 +0100
- Subject: Re: Segfault in simple use of codecvt<>
- References: <19c077830801120159g716089d8p12f59db96d995563@mail.gmail.com> <003301c8551b$f21aa6d0$0207a8c0@bettan>
Yes - I see my error - sorry for the fuzz about nothing.
On 1/12/08, Bo Persson <bop@gmb.dk> wrote:
> >
> > As far as I know, a temporary is supposed to stay "alive" until the
> > end of the scope.
> >
>
> No. Unless it is bound to a const reference, the temporary is
> destroyed at the end of the statement, not at the end of the scope.
>
>
> Bo Persson
>