type_traits: try to also please clang-cl

This commit is contained in:
Michele Caini
2022-02-08 11:50:53 +01:00
parent 87bc2cb1ab
commit ca424a4577

View File

@@ -600,6 +600,10 @@ inline constexpr bool is_equality_comparable_v = is_equality_comparable<Type>::v
template<typename Type, typename = void>
struct is_std_hashable: std::false_type {};
/*! @brief Specialization required to get around an issue with clang-cl. */
template<>
struct is_std_hashable<void>: std::false_type {};
/*! @copydoc is_std_hashable */
template<typename Type>
struct is_std_hashable<Type, std::enable_if_t<std::is_same_v<decltype(std::declval<const std::hash<Type> &>()(*std::declval<Type *>())), std::size_t>>>