mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-10 23:44:29 +00:00
clean-up
This commit is contained in:
parent
6e1978eea7
commit
27f5b9d925
2 changed files with 3 additions and 2 deletions
|
|
@ -22,6 +22,7 @@
|
||||||
// SOFTWARE.
|
// SOFTWARE.
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
#define MAGIC_ENUM_ENABLE_HASH
|
#define MAGIC_ENUM_ENABLE_HASH
|
||||||
#include <magic_enum_switch.hpp>
|
#include <magic_enum_switch.hpp>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -397,7 +397,7 @@ constexpr I log2(I value) noexcept {
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(__cpp_lib_array_constexpr) && __cpp_lib_array_constexpr >= 201603L
|
#if defined(__cpp_lib_array_constexpr) && __cpp_lib_array_constexpr >= 201603L
|
||||||
#define MAGIC_ENUM_ARRAY_CONSTEXPR 1
|
# define MAGIC_ENUM_ARRAY_CONSTEXPR 1
|
||||||
#else
|
#else
|
||||||
template <typename T, std::size_t N, std::size_t... I>
|
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 {
|
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
|
#if defined(_MSC_VER) && !defined(__clang__) && _MSC_VER < 1920
|
||||||
#define MAGIC_ENUM_VS_2017_WORKAROUND 1
|
# define MAGIC_ENUM_VS_2017_WORKAROUND 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(MAGIC_ENUM_VS_2017_WORKAROUND)
|
#if defined(MAGIC_ENUM_VS_2017_WORKAROUND)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue