forked from boostorg/static_string
Adjust is_iterator
This commit is contained in:
@ -72,13 +72,10 @@ template<class T, typename = void>
|
|||||||
struct is_iterator : std::false_type { };
|
struct is_iterator : std::false_type { };
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
struct is_iterator<T,
|
struct is_iterator<T,
|
||||||
void_t<typename T::difference_type,
|
typename std::enable_if<std::is_class<T>::value,
|
||||||
typename T::value_type,
|
void_t<typename T::iterator_category>>::type>
|
||||||
typename T::pointer,
|
: std::true_type { };
|
||||||
typename T::reference,
|
|
||||||
typename T::iterator_category>>
|
|
||||||
: std::true_type { };
|
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
struct is_iterator<T*, void>
|
struct is_iterator<T*, void>
|
||||||
|
Reference in New Issue
Block a user