Re: Is this code wrong?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Aug 8, 2008 at 10:24 PM, Eljay Love-Jensen <eljay@xxxxxxxxx> 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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux