Movatterモバイル変換


[0]ホーム

URL:


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

2025-12-20


806. Enumeration types in integral constant expressions

Section:7.7  [expr.const]    Status:CD2    Submitter:UK    Date:3 March, 2009

N2800 comment UK 50

[Voted into WP at October, 2009 meeting.]

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

Proposed resolution (September, 2009):

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




[8]ページ先頭

©2009-2026 Movatter.jp