Title
The values of an enumeration with no enumerator
Status
cd2
Section
9.7.1 [dcl.enum]
Submitter
Gennaro Prota

Created on 2007-03-15.00:00:00 last changed 179 months ago

Messages

Date: 2009-03-15.00:00:00

[Voted into the WP at the March, 2009 meeting.]

Date: 2008-03-15.00:00:00

Proposed resolution (March, 2008):

Add the indicated sentence to the end of 9.7.1 [dcl.enum] paragraph 5:

...It is possible to define an enumeration that has values not defined by any of its enumerators. If the enumerator-list is empty, the values of the enumeration are as if the enumeration had a single enumerator with value 0.
Date: 2009-03-23.00:00:00
N2800 comment UKĀ 96

According to 9.7.1 [dcl.enum] paragraph 6, the underlying type of an enumeration with an empty enumeration-list is determined as if the enumeration-list contained a single enumerator with value 0. Paragraph 7, which specifies the values of an enumeration and the minimum size of bit-field needed represent those values needs a similar provision for empty enumeration-lists.

History
Date User Action Args
2010-03-29 00:00:00adminsetstatus: wp -> cd2
2009-08-03 00:00:00adminsetstatus: dr -> wp
2009-03-23 00:00:00adminsetmessages: + msg2024
2009-03-23 00:00:00adminsetstatus: ready -> dr
2008-10-05 00:00:00adminsetstatus: review -> ready
2008-03-17 00:00:00adminsetmessages: + msg1601
2008-03-17 00:00:00adminsetstatus: drafting -> review
2007-08-05 00:00:00adminsetstatus: open -> drafting
2007-03-15 00:00:00admincreate