mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +03:00
Extend "when necessary" explanation (#2000)
* Extend "when necessary" explanation * Rephrase sentence
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user