List some non-enum alternatives to macros in Enum.1, closes #2054

pull/2068/head
Herb Sutter 3 years ago
parent 89a20b2cc8
commit 1b41448298

@ -9070,9 +9070,13 @@ Instead use an `enum`:
We used an `enum class` to avoid name clashes.
##### Note
Also consider `constexpr` and `const inline` variables.
##### Enforcement
Flag macros that define integer values.
Flag macros that define integer values. Use `enum` or `const inline` or another non-macro alternative instead.
### <a name="Renum-set"></a>Enum.2: Use enumerations to represent sets of related named constants

Loading…
Cancel
Save