fix clang trunk build

This commit is contained in:
neargye 2022-08-12 21:46:36 +04:00
parent 3237b9a367
commit 09f879a995

View file

@ -583,7 +583,7 @@ constexpr bool is_valid() noexcept {
if constexpr (custom_name.empty()) {
return n<E, v>().size() != 0;
} else {
return name.size() != 0;
return custom_name.size() != 0;
}
#else
return enum_name<E, static_cast<E>(V)>().size() != 0;