type_traits: try to make all compilers happy
This commit is contained in:
@@ -675,6 +675,14 @@ inline constexpr bool is_complete_v = is_complete<Type>::value;
|
||||
template<typename Type, typename = void>
|
||||
struct is_iterator: std::false_type {};
|
||||
|
||||
/*! @copydoc is_iterator */
|
||||
template<typename Type>
|
||||
struct is_iterator<const Type>: is_iterator<Type> {};
|
||||
|
||||
/*! @copydoc is_iterator */
|
||||
template<>
|
||||
struct is_iterator<void *>: std::false_type {};
|
||||
|
||||
/*! @copydoc is_iterator */
|
||||
template<typename Type>
|
||||
struct is_iterator<Type, std::void_t<typename std::iterator_traits<Type>::iterator_category>>: std::true_type {};
|
||||
|
||||
Reference in New Issue
Block a user