update readme
This commit is contained in:
parent
7fb936bc3e
commit
a91ccaa76f
1 changed files with 1 additions and 0 deletions
|
@ -123,6 +123,7 @@ nameof::NameofEnum(c) -> "RED"
|
||||||
* Instead of macros NAMEOF_TYPE, you can use the function nameof::NameofType<>.
|
* Instead of macros NAMEOF_TYPE, you can use the function nameof::NameofType<>.
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
|
nameof::NameofType(Color::RED) -> "Color"
|
||||||
nameof::NameofType<decltype(Color::RED)>() -> "Color"
|
nameof::NameofType<decltype(Color::RED)>() -> "Color"
|
||||||
nameof::NameofType<int> -> "int"
|
nameof::NameofType<int> -> "int"
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue