1
0
Fork 0
mirror of https://github.com/Neargye/magic_enum.git synced 2026-01-09 23:34:23 +00:00

Re-enable Wenum-constexpr-conversion clang fix (#279)

This commit is contained in:
Jordan Rupprecht 2023-06-06 04:22:49 -05:00 committed by GitHub
parent 27f5b9d925
commit 8a26b3dc42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -568,7 +568,7 @@ inline constexpr auto enum_name_v = enum_name<E, V>();
template <typename E, auto V>
constexpr bool is_valid() noexcept {
#if defined(__clang__) && __clang_major__ >= 16 && 0
#if defined(__clang__) && __clang_major__ >= 16
// https://reviews.llvm.org/D130058, https://reviews.llvm.org/D131307
constexpr E v = __builtin_bit_cast(E, V);
#else