Title
Converting a braced-init-list default argument
Status
cd3
Section
9.3.4.7 [dcl.fct.default]
Submitter
Mike Miller

Created on 2010-11-19.00:00:00 last changed 131 months ago

Messages

Date: 2012-02-15.00:00:00

[Voted into the WP at the February, 2012 meeting; moved to DR at the October, 2012 meeting.]

Date: 2011-08-15.00:00:00

Proposed resolution (August, 2011):

Delete the first sentence of 9.3.4.7 [dcl.fct.default] paragraph 5:

A default argument is implicitly converted (7.3 [conv]) to the parameter type.
Date: 2022-02-18.07:47:23

According to the new wording of 9.3.4.7 [dcl.fct.default] paragraph 5,

A default argument is implicitly converted (7.3 [conv]) to the parameter type.

This is incorrect when the default argument is a braced-init-list. That sentence doesn't seem to be necessary, but if it is kept, it should be recast in terms of initialization rather than conversion.

History
Date User Action Args
2014-03-03 00:00:00adminsetstatus: drwp -> cd3
2012-11-03 00:00:00adminsetstatus: dr -> drwp
2012-02-27 00:00:00adminsetmessages: + msg3811
2012-02-27 00:00:00adminsetstatus: ready -> dr
2011-09-06 00:00:00adminsetmessages: + msg3462
2011-09-06 00:00:00adminsetstatus: drafting -> ready
2011-04-10 00:00:00adminsetstatus: open -> drafting
2010-11-19 00:00:00admincreate