This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 115e. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2024-11-11


1226. Converting a braced-init-list default argument

Section: 9.3.4.7  [dcl.fct.default]     Status: CD3     Submitter: Mike Miller     Date: 2010-11-19

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

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.

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.