From 735ba9fb1d2ec88dc85ceaee7f7e8f996c87b78e Mon Sep 17 00:00:00 2001 From: neargye Date: Fri, 26 Jun 2020 21:37:48 +0500 Subject: [PATCH] update readme --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 62b64bd..529d92b 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,8 @@ Header-only C++17 library provides nameof macros and functions to simply obtain * Nameof enum ```cpp + enum class Color { RED = 2, BLUE = 4, GREEN = 8 }; + auto color = Color::RED; // Name of enum variable. NAMEOF_ENUM(color) -> "RED"