File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 12
12
[ ![ Build Status] ( https://travis-ci.org/Neargye/nameof.svg?branch=master )] ( https://travis-ci.org/Neargye/nameof )
13
13
[ ![ Build status] ( https://ci.appveyor.com/api/projects/status/yq5fk0d9mwljbubt/branch/master?svg=true )] ( https://ci.appveyor.com/project/Neargye/nameof/branch/master )
14
14
[ ![ 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 )
15
- [ ![ Try online] ( https://img.shields.io/badge/try-online-blue.svg )] ( https://wandbox.org/permlink/1biubvidzJXEKr69 )
15
+ [ ![ Try online] ( https://img.shields.io/badge/try-online-blue.svg )] ( https://wandbox.org/permlink/XjaqDqqHOGJT56HE )
16
16
17
17
# Nameof C++
18
18
@@ -59,6 +59,11 @@ Header-only C++17 library provides nameof macros and functions to obtain simple
59
59
// Name of enum variable.
60
60
NAMEOF_ENUM(color) -> "RED"
61
61
nameof::nameof_enum(color) -> "RED"
62
+
63
+ // Static storage enum variable to string.
64
+ // This version is much lighter on the compile times and is not restricted to the enum_range limitation.
65
+ NAMEOF_CONST_ENUM(Color::GREEN) -> "GREEN"
66
+ nameof::nameof_enum<Color::GREEN>() -> "GREEN"
62
67
```
63
68
64
69
* Nameof type
You can’t perform that action at this time.
0 commit comments