3 Nov
2011
3 Nov
'11
10:21 p.m.
On Nov 3, 2011, at 4:06 PM, Frédéric Bron wrote:
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.
You could maybe use the following:
::boost::type_traits::ice_and< ::boost::type_traits::ice_not< ::boost::is_pointer< T >::value
::value, ::boost::has_post_increment< T >::value, ::boost::has_dereference< T >::value ::value
Thanks Frédéric, that's the path I was heading down. I appreciate the help! -- Noel