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

2024-12-06


1072. Scoped enumerator with the same name as its containing class

Section: 11.4  [class.mem]     Status: C++11     Submitter: Pavel Minaev     Date: 2010-06-02

[Voted into the WP at the November, 2010 meeting.]

11.4 [class.mem] paragraph 13 requires that all enumerators of a member enumeration type have names different from that of the containing class. This is only necessary for an unscoped enumeration; scoped enumerators are not in the scope of the containing class.

Proposed resolution (September, 2010):

Change 11.4 [class.mem] bullet 14.4 as follows: