diff --git a/README.md b/README.md index f7e3087..e96863b 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ [![Build Status](https://travis-ci.org/Neargye/nameof.svg?branch=master)](https://travis-ci.org/Neargye/nameof) [![Build status](https://ci.appveyor.com/api/projects/status/yq5fk0d9mwljbubt/branch/master?svg=true)](https://ci.appveyor.com/project/Neargye/nameof/branch/master) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/1d06f3f07afe4f34acd29c0c8efa830b)](https://www.codacy.com/app/Neargye/nameof?utm_source=github.com&utm_medium=referral&utm_content=Neargye/nameof&utm_campaign=Badge_Grade) -[![Try online](https://img.shields.io/badge/try-online-blue.svg)](https://wandbox.org/permlink/1biubvidzJXEKr69) +[![Try online](https://img.shields.io/badge/try-online-blue.svg)](https://wandbox.org/permlink/XjaqDqqHOGJT56HE) # Nameof C++ @@ -59,6 +59,11 @@ Header-only C++17 library provides nameof macros and functions to obtain simple // Name of enum variable. NAMEOF_ENUM(color) -> "RED" nameof::nameof_enum(color) -> "RED" + + // Static storage enum variable to string. + // This version is much lighter on the compile times and is not restricted to the enum_range limitation. + NAMEOF_CONST_ENUM(Color::GREEN) -> "GREEN" + nameof::nameof_enum() -> "GREEN" ``` * Nameof type