Skip to content

Commit 560c5c8

Browse files
jensmaurertkoeppe
authored andcommitted
[expr.static.cast] Admit integral promotion for cast to enumeration type
1 parent d6f4d5e commit 560c5c8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/expressions.tex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3865,7 +3865,9 @@
38653865
a complete enumeration type.
38663866
If the enumeration type has a fixed underlying type,
38673867
the value is first converted to that type
3868-
by integral conversion, if necessary, and
3868+
by
3869+
integral promotion\iref{conv.prom} or integral conversion\iref{conv.integral},
3870+
if necessary, and
38693871
then to the enumeration type.
38703872
If the enumeration type does not have a fixed underlying type,
38713873
the value is unchanged

0 commit comments

Comments
 (0)