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 2023-06-05 15:18:56 +04:00
parent 6e1978eea7
commit 27f5b9d925
2 changed files with 3 additions and 2 deletions

View file

@ -22,6 +22,7 @@
// SOFTWARE.
#include <iostream>
#define MAGIC_ENUM_ENABLE_HASH
#include <magic_enum_switch.hpp>

View file

@ -397,7 +397,7 @@ constexpr I log2(I value) noexcept {
}
#if defined(__cpp_lib_array_constexpr) && __cpp_lib_array_constexpr >= 201603L
#define MAGIC_ENUM_ARRAY_CONSTEXPR 1
# define MAGIC_ENUM_ARRAY_CONSTEXPR 1
#else
template <typename T, std::size_t N, std::size_t... I>
constexpr std::array<std::remove_cv_t<T>, N> to_array(T (&a)[N], std::index_sequence<I...>) noexcept {
@ -514,7 +514,7 @@ constexpr auto n() noexcept {
}
#if defined(_MSC_VER) && !defined(__clang__) && _MSC_VER < 1920
#define MAGIC_ENUM_VS_2017_WORKAROUND 1
# define MAGIC_ENUM_VS_2017_WORKAROUND 1
#endif
#if defined(MAGIC_ENUM_VS_2017_WORKAROUND)