type_traits: try to make clang-cl happy again

This commit is contained in:
Michele Caini
2024-06-03 12:54:56 +02:00
parent 216bd0a629
commit 69864955af
+2 -2
View File
@@ -772,10 +772,10 @@ template<typename Type>
if constexpr(std::is_array_v<Type>) {
return false;
} else if constexpr(!is_iterator_v<Type> && has_value_type<Type>::value) {
if constexpr(std::is_same_v<typename Type::value_type, Type>) {
if constexpr(std::is_same_v<typename Type::value_type, Type> || dispatch_is_equality_comparable<typename Type::value_type>()) {
return maybe_equality_comparable<Type>(0);
} else {
return maybe_equality_comparable<Type>(0) && dispatch_is_equality_comparable<typename Type::value_type>();
return false;
}
} else if constexpr(is_complete_v<std::tuple_size<std::remove_cv_t<Type>>>) {
if constexpr(has_tuple_size_value<Type>::value) {