Fix enum flags example in README.md (#63)

This commit is contained in:
SF-Zhou 2023-09-21 15:55:14 +08:00 committed by GitHub
parent 8aeb677413
commit 5443409085
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"