From f4d98123d9173396cd92329a56633b51b3ae4101 Mon Sep 17 00:00:00 2001 From: neargye Date: Wed, 2 Dec 2020 12:07:30 +0200 Subject: [PATCH] v0.7.1 --- CMakeLists.txt | 2 +- README.md | 4 ++-- include/magic_enum.hpp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 908117c..dd4c16a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ 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) set(IS_TOPLEVEL_PROJECT TRUE) diff --git a/README.md b/README.md index fc1dbaa..4539fc2 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ [![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/wQyldHgJZfrnWx9x) +[![Try online](https://img.shields.io/badge/try-online-blue.svg)](https://wandbox.org/permlink/CmWdR9oPY4vhWYuH) [![Compiler explorer](https://img.shields.io/badge/compiler_explorer-online-blue.svg)](https://godbolt.org/z/BxfmsH) # Magic Enum C++ @@ -94,7 +94,7 @@ enum class Color { RED = 2, BLUE = 4, GREEN = 8 }; * Indexed access to enum value ```cpp - int i = 1; + std::size_t i = 1; Color color = magic_enum::enum_value(i); // color -> Color::BLUE ``` diff --git a/include/magic_enum.hpp b/include/magic_enum.hpp index 0cb67e4..902ad15 100644 --- a/include/magic_enum.hpp +++ b/include/magic_enum.hpp @@ -5,7 +5,7 @@ // | | | | (_| | (_| | | (__ | |____| | | | |_| | | | | | | | |____|_| |_| // |_| |_|\__,_|\__, |_|\___| |______|_| |_|\__,_|_| |_| |_| \_____| // __/ | https://github.com/Neargye/magic_enum -// |___/ version 0.7.0 +// |___/ version 0.7.1 // // Licensed under the MIT License . // SPDX-License-Identifier: MIT @@ -34,7 +34,7 @@ #define MAGIC_ENUM_VERSION_MAJOR 0 #define MAGIC_ENUM_VERSION_MINOR 7 -#define MAGIC_ENUM_VERSION_PATCH 0 +#define MAGIC_ENUM_VERSION_PATCH 1 #include #include