Title
Enumeration types in integral constant expressions
Status
cd2
Section
7.7 [expr.const]
Submitter
UK

Created on 2009-03-03.00:00:00 last changed 171 months ago

Messages

Date: 2009-10-15.00:00:00

[Voted into WP at October, 2009 meeting.]

Date: 2009-09-15.00:00:00

Proposed resolution (September, 2009):

Change 7.7 [expr.const] paragraph 2, bullet 4, sub-bullet 1 as indicated:

  • an lvalue-to-rvalue conversion (7.3.2 [conv.lval]) unless it is applied to

    • an lvalue of effective integral or enumeration type that refers to a non-volatile const variable or static data member initialized with constant expressions, or

    • ...

Date: 2009-03-03.00:00:00
N2800 comment UK 50

According to 7.7 [expr.const] paragraph 2, bullet 4, sub-bullet 1, a non-volatile const variable or static data member initialized with constant expressions can be used in an integral constant expression only if it is “of effective integral type.” Unscoped enumeration types should also be accepted in such contexts.

History
Date User Action Args
2010-03-29 00:00:00adminsetstatus: dr -> cd2
2009-11-08 00:00:00adminsetmessages: + msg2446
2009-11-08 00:00:00adminsetstatus: tentatively ready -> dr
2009-09-29 00:00:00adminsetmessages: + msg2294
2009-09-29 00:00:00adminsetstatus: drafting -> tentatively ready
2009-03-03 00:00:00admincreate