This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Segfault in simple use of codecvt<>


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
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]