Title
new auto{x}
Status
cd5
Section
7.6.2.8 [expr.new]
Submitter
Richard Smith

Created on 2015-04-03.00:00:00 last changed 45 months ago

Messages

Date: 2017-02-15.00:00:00

[Adopted at the February, 2017 meeting as part of paper P0620R0.]

According to 7.6.2.8 [expr.new] paragraph 2,

If a placeholder type (9.2.9.7 [dcl.spec.auto]) appears in the type-specifier-seq of a new-type-id or type-id of a new-expression, the new-expression shall contain a new-initializer of the form

    ( assignment-expression )

Now that auto v{x}; is permitted, this restriction on new-expressions should be revised to allow a single-element braced-init-list as well.

History
Date User Action Args
2021-02-17 00:00:00adminsetstatus: drafting -> cd5
2015-04-03 00:00:00admincreate