Fix enum flags example in README.md (#63)
This commit is contained in:
parent
8aeb677413
commit
5443409085
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ Header-only C++17 library provides nameof macros and functions to simply obtain
|
||||||
|
|
||||||
// Enum flags variable to string.
|
// Enum flags variable to string.
|
||||||
NAMEOF_ENUM_FLAG(Color::GREEN | Color::BLUE) -> "GREEN|BLUE"
|
NAMEOF_ENUM_FLAG(Color::GREEN | Color::BLUE) -> "GREEN|BLUE"
|
||||||
nameof::nameof_enum_flag<Color::GREEN>() -> "GREEN|BLUE"
|
nameof::nameof_enum_flag<Color::GREEN | Color::BLUE>() -> "GREEN|BLUE"
|
||||||
|
|
||||||
// Obtains name of enum variable or default value if enum variable out of range.
|
// Obtains name of enum variable or default value if enum variable out of range.
|
||||||
NAMEOF_ENUM_OR(Color::GREEN) -> "GREEN"
|
NAMEOF_ENUM_OR(Color::GREEN) -> "GREEN"
|
||||||
|
|
Loading…
Reference in a new issue