mirror of
https://github.com/Neargye/magic_enum
synced 2026-06-08 12:00:02 +00:00
Re-enable Wenum-constexpr-conversion clang fix (#279)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user