From: "corey taylor" <corey.taylor@gmail.com>
To: "Eljay Love-Jensen" <eljay@adobe.com>
Cc: "John Fine" <johnsfine@verizon.net>, GCC-help <gcc-help@gcc.gnu.org>
Subject: Re: Is this code wrong?
Date: Sat, 09 Aug 2008 11:23:00 -0000 [thread overview]
Message-ID: <2e393d080808081944n71bda72dkf9bba3e7a72df974@mail.gmail.com> (raw)
In-Reply-To: <C4C26A03.7BBB%eljay@adobe.com>
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
next prev parent reply other threads:[~2008-08-09 2:44 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-08 6:55 odd behavior with Character Arrays Rohit Arul Raj
2008-08-08 7:07 ` Mateusz Loskot
2008-08-08 9:38 ` Rohit Arul Raj
2008-08-08 12:10 ` Jędrzej Dudkiewicz
2008-08-08 13:00 ` Mateusz Loskot
2008-08-08 13:40 ` Mateusz Loskot
2008-08-08 15:01 ` John Fine
2008-08-09 1:09 ` Is this code wrong? John Fine
2008-08-09 2:44 ` Eljay Love-Jensen
2008-08-09 11:23 ` corey taylor [this message]
2008-08-09 14:57 ` John Fine
2008-08-08 15:38 ` odd behavior with Character Arrays Bob Plantz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2e393d080808081944n71bda72dkf9bba3e7a72df974@mail.gmail.com \
--to=corey.taylor@gmail.com \
--cc=eljay@adobe.com \
--cc=gcc-help@gcc.gnu.org \
--cc=johnsfine@verizon.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).