Re: Teach myself C++.
- From: Richard Herring <junk@[127.0.0.1]>
- Date: Fri, 31 Jul 2009 10:07:30 +0100
In message <871vnxij9t.fsf@xxxxxxxxxxxxxxxxxxxx>, Phil Carmody <thefatphil_demunged@xxxxxxxxxxx> writes
Richard Herring <junk@[127.0.0.1]> writes:In message <87r5w1o1wl.fsf@xxxxxxxxxxxxxxxxxxxx>, Phil Carmody[SNIP - crap]
<thefatphil_demunged@xxxxxxxxxxx> writes:
If you had read a little further on in the standard, you would have
found the section which is actually relevant to the code above, (12.2
[class.temporary])
Indeed. Fully retracted. I am familiar with Tom's complaint, as
it is one I made myself way back in the past. However, it appears
that the standardisation committee addressed such complaints
earlier than I previously thought.
Apologies.
Accepted, of course.
And before there was a standard, no doubt all bets were off. In Stroustrup (3rd edition, regrettably I didn't keep my copy of the 1st) there are words implying that temporaries "used to initialize a named object", whatever that means, might have an extended lifetime. I don't know what the ARM, the nearest thing to a de-facto pre-standard, says on this matter.
--
Richard Herring
.
- Follow-Ups:
- Re: Teach myself C++.
- From: Le Chaud Lapin
- Re: Teach myself C++.
- References:
- Teach myself C++.
- From: adacrypt
- Re: Teach myself C++.
- From: Richard Herring
- Re: Teach myself C++.
- From: Le Chaud Lapin
- Re: Teach myself C++.
- From: Tom St Denis
- Re: Teach myself C++.
- From: Le Chaud Lapin
- Re: Teach myself C++.
- From: Tom St Denis
- Re: Teach myself C++.
- From: Jonathan Lee
- Re: Teach myself C++.
- From: Tom St Denis
- Re: Teach myself C++.
- From: Richard Herring
- Re: Teach myself C++.
- From: Phil Carmody
- Re: Teach myself C++.
- From: Richard Herring
- Re: Teach myself C++.
- From: Phil Carmody
- Teach myself C++.
- Prev by Date: Re: gpg2 --gen-key
- Next by Date: Re: gpg2 --gen-key
- Previous by thread: Re: Teach myself C++.
- Next by thread: Re: Teach myself C++.
- Index(es):
Relevant Pages
|