File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 100
100
declared variable
101
101
contextually converted to \tcode {bool}\iref {conv }.
102
102
If that
103
- conversion is ill-formed, the program is ill-formed. The value of a
104
- \grammarterm {condition} that is an initialized declaration in a
105
- \keyword {switch} statement is the value of the declared variable if it has
106
- integral or enumeration type, or of that variable implicitly converted
107
- to integral or enumeration type otherwise. The value of a
103
+ conversion is ill-formed, the program is ill-formed.
104
+ The value of a
108
105
\grammarterm {condition} that is an expression is the value of the
109
106
expression, contextually converted to \tcode {bool}
110
107
for statements other
412
409
several statements depending on the value of a condition.
413
410
414
411
\pnum
415
- The condition shall be of integral type, enumeration type, or class
412
+ The value of a \grammarterm {condition}
413
+ that is an initialized declaration
414
+ is the value of the declared variable,
415
+ or the value of the \grammarterm {expression} otherwise.
416
+ The value of the condition shall be of integral type, enumeration type, or class
416
417
type. If of class type, the
417
418
condition is contextually implicitly converted\iref {conv } to
418
419
an integral or enumeration type.
You can’t perform that action at this time.
0 commit comments