tmp/tmpku7atnp2/{from.md → to.md}
RENAMED
|
@@ -103,15 +103,14 @@ ignored. An *opaque-enum-declaration* declaring an unscoped enumeration
|
|
| 103 |
shall not omit the *enum-base*. The identifiers in an *enumerator-list*
|
| 104 |
are declared as constants, and can appear wherever constants are
|
| 105 |
required. The same identifier shall not appear as the name of multiple
|
| 106 |
enumerators in an *enumerator-list*. An *enumerator-definition* with `=`
|
| 107 |
gives the associated *enumerator* the value indicated by the
|
| 108 |
-
*constant-expression*.
|
| 109 |
-
the value
|
| 110 |
-
*enumerator-definition*
|
| 111 |
-
|
| 112 |
-
by one.
|
| 113 |
|
| 114 |
[*Example 2*:
|
| 115 |
|
| 116 |
``` cpp
|
| 117 |
enum { a, b, c=0 };
|
|
|
|
| 103 |
shall not omit the *enum-base*. The identifiers in an *enumerator-list*
|
| 104 |
are declared as constants, and can appear wherever constants are
|
| 105 |
required. The same identifier shall not appear as the name of multiple
|
| 106 |
enumerators in an *enumerator-list*. An *enumerator-definition* with `=`
|
| 107 |
gives the associated *enumerator* the value indicated by the
|
| 108 |
+
*constant-expression*. An *enumerator-definition* without `=` gives the
|
| 109 |
+
associated *enumerator* the value zero if it is the first
|
| 110 |
+
*enumerator-definition*, and the value of the previous *enumerator*
|
| 111 |
+
increased by one otherwise.
|
|
|
|
| 112 |
|
| 113 |
[*Example 2*:
|
| 114 |
|
| 115 |
``` cpp
|
| 116 |
enum { a, b, c=0 };
|