Extend "when necessary" explanation (#2000)

* Extend "when necessary" explanation

* Rephrase sentence
This commit is contained in:
Andrey Sikorin
2022-12-02 01:25:21 +03:00
committed by GitHub
parent ae06b0a056
commit b8f13c59a3

View File

@@ -9214,7 +9214,7 @@ The default is the easiest to read and write.
##### Note
Specifying the underlying type is necessary in forward declarations of enumerations:
Specifying the underlying type is necessary to forward-declare an enum or enum class:
enum Flags : char;
@@ -9224,6 +9224,9 @@ Specifying the underlying type is necessary in forward declarations of enumerati
enum Flags : char { /* ... */ };
or to ensure that values of that type have a specified bit-precision:
enum Bitboard : uint64_t { /* ... */ };
##### Enforcement