The value of a condition
that is an initialized declaration
is the value of the declared variable,
or the value of the expression
The value of the condition shall be of integral type, enumeration type, or class
If the (possibly converted) type is subject to integral
, the condition is converted
to the promoted type.
statement within the switch
statement can be labeled with one or
more case labels as follows:
where the constant-expression
a converted constant expression
adjusted type of the switch condition.
No two of the case constants in
the same switch shall have the same value after conversion.