forked from boostorg/unordered
forced a compile error when Hash::is_avalanching is not a type
This commit is contained in:
@ -42,6 +42,12 @@ struct hash_is_avalanching_impl<
|
|||||||
avalanching_value<typename Hash::is_avalanching>::value
|
avalanching_value<typename Hash::is_avalanching>::value
|
||||||
>{};
|
>{};
|
||||||
|
|
||||||
|
template<typename Hash>
|
||||||
|
struct hash_is_avalanching_impl<
|
||||||
|
Hash,
|
||||||
|
typename std::enable_if<((void)Hash::is_avalanching,true)>::type
|
||||||
|
>{}; /* Hash::is_avalanching is not a type: compile error downstream */
|
||||||
|
|
||||||
} /* namespace detail */
|
} /* namespace detail */
|
||||||
|
|
||||||
/* Each trait can be partially specialized by users for concrete hash functions
|
/* Each trait can be partially specialized by users for concrete hash functions
|
||||||
|
Reference in New Issue
Block a user