[go: nahoru, domu]

Skip to content

Commit

Permalink
clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
Neargye committed Jun 5, 2023
1 parent 6e1978e commit 27f5b9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions example/example_switch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
// SOFTWARE.

#include <iostream>

#define MAGIC_ENUM_ENABLE_HASH
#include <magic_enum_switch.hpp>

Expand Down
4 changes: 2 additions & 2 deletions include/magic_enum.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 27f5b9d

Please sign in to comment.