Skip to content

Commit 7b39296

Browse files
committed
update readme
1 parent b35e1e6 commit 7b39296

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
[![Build Status](https://travis-ci.org/Neargye/nameof.svg?branch=master)](https://travis-ci.org/Neargye/nameof)
1313
[![Build status](https://ci.appveyor.com/api/projects/status/yq5fk0d9mwljbubt/branch/master?svg=true)](https://ci.appveyor.com/project/Neargye/nameof/branch/master)
1414
[![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)
1616

1717
# Nameof C++
1818

@@ -59,6 +59,11 @@ Header-only C++17 library provides nameof macros and functions to obtain simple
5959
// Name of enum variable.
6060
NAMEOF_ENUM(color) -> "RED"
6161
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"
6267
```
6368

6469
* Nameof type

0 commit comments

Comments
 (0)