update readme
This commit is contained in:
parent
fff49040ed
commit
735ba9fb1d
1 changed files with 2 additions and 0 deletions
|
@ -66,6 +66,8 @@ Header-only C++17 library provides nameof macros and functions to simply obtain
|
|||
* Nameof enum
|
||||
|
||||
```cpp
|
||||
enum class Color { RED = 2, BLUE = 4, GREEN = 8 };
|
||||
|
||||
auto color = Color::RED;
|
||||
// Name of enum variable.
|
||||
NAMEOF_ENUM(color) -> "RED"
|
||||
|
|
Loading…
Reference in a new issue