mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-10 23:44:29 +00:00
Re-enable Wenum-constexpr-conversion clang fix (#279)
This commit is contained in:
parent
27f5b9d925
commit
8a26b3dc42
1 changed files with 1 additions and 1 deletions
|
|
@ -568,7 +568,7 @@ inline constexpr auto enum_name_v = enum_name<E, V>();
|
||||||
|
|
||||||
template <typename E, auto V>
|
template <typename E, auto V>
|
||||||
constexpr bool is_valid() noexcept {
|
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
|
// https://reviews.llvm.org/D130058, https://reviews.llvm.org/D131307
|
||||||
constexpr E v = __builtin_bit_cast(E, V);
|
constexpr E v = __builtin_bit_cast(E, V);
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue