From 64651133eaad537ee1c7d0f93d7e404ed237ce22 Mon Sep 17 00:00:00 2001 From: terik23 Date: Sun, 24 Mar 2019 21:18:15 +0500 Subject: [PATCH] update readme --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9169840..29b3772 100644 --- a/README.md +++ b/README.md @@ -55,16 +55,17 @@ static_assert("foo" == cx_name); * Name of enum ```cpp -// Name of enum auto c = Color::RED; +// Name of enum variable NAMEOF_ENUM(c) -> "RED" -// Name of enum +// Name of enum variable nameof::nameof_enum(c) -> "RED" constexpr auto cx_name = NAMEOF_ENUM(c); static_assert("RED" == cx_name); constexpr auto cx_color = Color::RED; +// Name of static storage enum variable nameof::nameof_enum() -> "RED" ```