Is this code wrong?

corey taylor corey.taylor@gmail.com
Sat Aug 9 11:23:00 GMT 2008


On Fri, Aug 8, 2008 at 10:24 PM, Eljay Love-Jensen <eljay@adobe.com> wrote:
> The temporary returned by ReturnAFoo in DoSomething is bound to the
> reference.
>
> It won't be destructed until the reference goes out of scope.  Really.
>
> I use that style often.
>
> (Although I can't cite chapter+verse of ISO 14882.)

12.2.5 - it is a long paragraph explaining the lifetime of the
temporary bound to a reference.

corey



More information about the Gcc-help mailing list