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

2024-04-18


893. Brace syntax for enumerator-definitions

Section: 9.7.1  [dcl.enum]     Status: NAD     Submitter: Alisdair Meredith     Date: 8 May, 2009

Although in most contexts “= expression” can be replaced by “{ expression }”, enumerator-definitions accept only the “=” form. This could be surprising.

Additional note (October, 2009):

The Committee may wish to consider default arguments in this light as well.

Rationale (August, 2010):

This suggestion was considered and rejected by EWG.