mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-09 23:34:23 +00:00
v0.7.1
This commit is contained in:
parent
e24befa5fd
commit
f4d98123d9
3 changed files with 5 additions and 5 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
cmake_minimum_required(VERSION 3.8)
|
cmake_minimum_required(VERSION 3.8)
|
||||||
|
|
||||||
project(magic_enum VERSION "0.7.0" LANGUAGES CXX)
|
project(magic_enum VERSION "0.7.1" LANGUAGES CXX)
|
||||||
|
|
||||||
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
|
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
|
||||||
set(IS_TOPLEVEL_PROJECT TRUE)
|
set(IS_TOPLEVEL_PROJECT TRUE)
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
[](https://travis-ci.org/Neargye/magic_enum)
|
[](https://travis-ci.org/Neargye/magic_enum)
|
||||||
[](https://ci.appveyor.com/project/Neargye/magic-enum-hf8vk/branch/master)
|
[](https://ci.appveyor.com/project/Neargye/magic-enum-hf8vk/branch/master)
|
||||||
[](https://www.codacy.com/app/Neargye/magic_enum?utm_source=github.com&utm_medium=referral&utm_content=Neargye/magic_enum&utm_campaign=Badge_Grade)
|
[](https://www.codacy.com/app/Neargye/magic_enum?utm_source=github.com&utm_medium=referral&utm_content=Neargye/magic_enum&utm_campaign=Badge_Grade)
|
||||||
[](https://wandbox.org/permlink/wQyldHgJZfrnWx9x)
|
[](https://wandbox.org/permlink/CmWdR9oPY4vhWYuH)
|
||||||
[](https://godbolt.org/z/BxfmsH)
|
[](https://godbolt.org/z/BxfmsH)
|
||||||
|
|
||||||
# Magic Enum C++
|
# Magic Enum C++
|
||||||
|
|
@ -94,7 +94,7 @@ enum class Color { RED = 2, BLUE = 4, GREEN = 8 };
|
||||||
* Indexed access to enum value
|
* Indexed access to enum value
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
int i = 1;
|
std::size_t i = 1;
|
||||||
Color color = magic_enum::enum_value<Color>(i);
|
Color color = magic_enum::enum_value<Color>(i);
|
||||||
// color -> Color::BLUE
|
// color -> Color::BLUE
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
// | | | | (_| | (_| | | (__ | |____| | | | |_| | | | | | | | |____|_| |_|
|
// | | | | (_| | (_| | | (__ | |____| | | | |_| | | | | | | | |____|_| |_|
|
||||||
// |_| |_|\__,_|\__, |_|\___| |______|_| |_|\__,_|_| |_| |_| \_____|
|
// |_| |_|\__,_|\__, |_|\___| |______|_| |_|\__,_|_| |_| |_| \_____|
|
||||||
// __/ | https://github.com/Neargye/magic_enum
|
// __/ | https://github.com/Neargye/magic_enum
|
||||||
// |___/ version 0.7.0
|
// |___/ version 0.7.1
|
||||||
//
|
//
|
||||||
// Licensed under the MIT License <http://opensource.org/licenses/MIT>.
|
// Licensed under the MIT License <http://opensource.org/licenses/MIT>.
|
||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
@ -34,7 +34,7 @@
|
||||||
|
|
||||||
#define MAGIC_ENUM_VERSION_MAJOR 0
|
#define MAGIC_ENUM_VERSION_MAJOR 0
|
||||||
#define MAGIC_ENUM_VERSION_MINOR 7
|
#define MAGIC_ENUM_VERSION_MINOR 7
|
||||||
#define MAGIC_ENUM_VERSION_PATCH 0
|
#define MAGIC_ENUM_VERSION_PATCH 1
|
||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue