update readme

This commit is contained in:
neargye 2019-03-21 14:16:14 +05:00
parent 7fb936bc3e
commit a91ccaa76f

View file

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