You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My current method of checking if something is an iterator is to instantiate iterator_traits. Unfortunately iterator_traits does not support SFINAE, causing hard compile errors when instantiated with non-iterators.
I could just write my own iterator_traits, but I would lose all of the specializations of std::iterator_traits.
How can is_iterator be implemented?
(I think SFINAE iterator_traits are in C++14)
My current method of checking if something is an iterator is to instantiate iterator_traits. Unfortunately iterator_traits does not support SFINAE, causing hard compile errors when instantiated with non-iterators.
I could just write my own iterator_traits, but I would lose all of the specializations of std::iterator_traits.
How can is_iterator be implemented?
(I think SFINAE iterator_traits are in C++14)