diff --git a/example/example_switch.cpp b/example/example_switch.cpp index c168fcc..badc6c1 100644 --- a/example/example_switch.cpp +++ b/example/example_switch.cpp @@ -22,6 +22,7 @@ // SOFTWARE. #include + #define MAGIC_ENUM_ENABLE_HASH #include diff --git a/include/magic_enum.hpp b/include/magic_enum.hpp index 2306856..943b552 100644 --- a/include/magic_enum.hpp +++ b/include/magic_enum.hpp @@ -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 constexpr std::array, N> to_array(T (&a)[N], std::index_sequence) 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)