From 7723ced483150f0f21c4aa8b2469016335631e39 Mon Sep 17 00:00:00 2001 From: terik23 Date: Mon, 25 Mar 2019 00:02:47 +0500 Subject: [PATCH] update readme --- README.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 29b3772..be2bd6c 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Before, you had to use string literals to refer to definitions, which is brittle ## Features * C++17 -* Simple syntax. +* Simple syntax * Header-only * Dependency-free * Compile-time @@ -61,12 +61,9 @@ NAMEOF_ENUM(c) -> "RED" // 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; +constexpr auto cx_color = Color::BLUE; // Name of static storage enum variable -nameof::nameof_enum() -> "RED" +nameof::nameof_enum() -> "BLUE" ``` * Name of type