
3 Nov
2011
3 Nov
'11
3:27 p.m.
Hi, I'm looking to use a trait in enable_if that can distinguish between a raw pointer and any other valid iterator type, essentially the difference between iterator traits and the raw pointer specialization. template <class Iterator> struct iterator_traits; template <class T> struct iterator_traits<T*>; I was hoping to find a boost::is_iterator type trait which would return false_type for is_iterator<int*> (any raw pointer) and true type for any other valid iterator. This would allow me to group iterators via is_pointer and is_iterator. I was just wondering if this already exists somewhere? Thanks. -- Noel Belcourt