Title
Timing of destruction of temporaries
Status
nad
Section
6.7.7 [class.temporary]
Submitter
Mike Miller

Created on 1999-05-14.00:00:00 last changed 291 months ago

Messages

Date: 2000-04-15.00:00:00

Rationale (04/00):

It was suggested that "before the initialization completes" refers to the case in which some part of the initialization terminates by throwing an exception. In that light, the apparent contradiction does not apply.

Date: 2022-11-20.07:54:16

6.7.7 [class.temporary] paragraph 4 seems self-contradictory:

the temporary that holds the result of the expression shall persist until the object's initialization is complete... the temporary is destroyed after it has been copied, before or when the initialization completes.
How can it be destroyed "before the initialization completes" if it is required to "persist until the object's initialization is complete?"
History
Date User Action Args
2000-05-21 00:00:00adminsetmessages: + msg371
2000-05-21 00:00:00adminsetstatus: drafting -> nad
2000-02-23 00:00:00adminsetstatus: open -> drafting
1999-05-14 00:00:00admincreate