From 82f2c7f5aa2e098fe271fe97921ef4ac3a1d0a2a Mon Sep 17 00:00:00 2001 From: neargye Date: Wed, 10 Apr 2019 19:09:26 +0500 Subject: [PATCH] fix reamde --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8705b40..fb5a0b5 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ Header-only C++17 library provides nameof macros and functions to obtain simple // color_name -> "BLUE" constexpr auto var_type_name = NAMEOF_VAR_TYPE(var); // or nameof::nameof_type() // var_type_name -> "int" - constexpr auto type_name = NAMEOF_VAR_TYPE(T); // or nameof::nameof_type() + constexpr auto type_name = NAMEOF_TYPE(T); // or nameof::nameof_type() // type_name -> "int" ``` @@ -117,7 +117,7 @@ Header-only C++17 library provides nameof macros and functions to obtain simple ```cpp #define NAMEOF_ENUM_RANGE_MIN 0 #define NAMEOF_ENUM_RANGE_MAX 256 - #include + #include ``` If need another range for specific enum type, add specialization `enum_range` for necessary enum type. @@ -126,7 +126,7 @@ Header-only C++17 library provides nameof macros and functions to obtain simple enum number { one = 100, two = 200, three = 300 }; - namespace NAMEOF_enum { + namespace nameof { template <> struct enum_range { static constexpr int min = 100;