1
0
Fork 0
mirror of https://github.com/Neargye/magic_enum.git synced 2026-01-09 23:34:23 +00:00
This commit is contained in:
neargye 2019-09-29 16:31:58 +05:00
parent 26dcd30d9a
commit 8eb87a9a88
4 changed files with 6 additions and 5 deletions

View file

@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.8)
project(magic_enum VERSION "0.6.0" LANGUAGES CXX)
project(magic_enum VERSION "0.6.1" LANGUAGES CXX)
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
set(IS_TOPLEVEL_PROJECT TRUE)

View file

@ -16,8 +16,8 @@
[![Build status](https://travis-ci.org/Neargye/magic_enum.svg?branch=master)](https://travis-ci.org/Neargye/magic_enum)
[![Build status](https://ci.appveyor.com/api/projects/status/0rpr966p9ssrvwu3/branch/master?svg=true)](https://ci.appveyor.com/project/Neargye/magic-enum-hf8vk/branch/master)
[![Codacy badge](https://api.codacy.com/project/badge/Grade/64d04f150af14c3e8bd1090057b68538)](https://www.codacy.com/app/Neargye/magic_enum?utm_source=github.com&utm_medium=referral&utm_content=Neargye/magic_enum&utm_campaign=Badge_Grade)
[![Try online](https://img.shields.io/badge/try-online-blue.svg)](https://wandbox.org/permlink/KaXmRxSliytXn0JO)
[![Compiler explorer](https://img.shields.io/badge/compiler_explorer-online-blue.svg)](https://godbolt.org/z/lX6L-B)
[![Try online](https://img.shields.io/badge/try-online-blue.svg)](https://wandbox.org/permlink/Dmo4ZoWXT1gHHM03)
[![Compiler explorer](https://img.shields.io/badge/compiler_explorer-online-blue.svg)](https://godbolt.org/z/ZbMCZS)
# Magic Enum C++
@ -165,6 +165,7 @@ enum Color { RED = 2, BLUE = 4, GREEN = 8 };
```
* Static storage enum variable to string
This version is much lighter on the compile times and is not restricted to the enum_range [limitation](doc/limitations.md).
```cpp
constexpr Color color = Color::BLUE;
constexpr auto color_name = magic_enum::enum_name<color>();

View file

@ -5,7 +5,7 @@ from conans.errors import ConanInvalidConfiguration
class MagicEnumConan(ConanFile):
name = "magic_enum"
version = "0.6.0"
version = "0.6.1"
description = "Header-only C++17 library provides static reflection for enums, work with any enum type without any macro or boilerplate code."
topics = (
"conan",

View file

@ -5,7 +5,7 @@
// | | | | (_| | (_| | | (__ | |____| | | | |_| | | | | | | | |____|_| |_|
// |_| |_|\__,_|\__, |_|\___| |______|_| |_|\__,_|_| |_| |_| \_____|
// __/ | https://github.com/Neargye/magic_enum
// |___/ vesion 0.6.0
// |___/ vesion 0.6.1
//
// Licensed under the MIT License <http://opensource.org/licenses/MIT>.
// SPDX-License-Identifier: MIT