|
Boost Users :
|
- Next message: Belcourt, K. Noel: "Re: [Boost-users] [type_traits] an is_iterator, not is_pointer, trait"
- Previous message: Belcourt, K. Noel: "[Boost-users] [type_traits] an is_iterator, not is_pointer, trait"
- In reply to: Belcourt, K. Noel: "[Boost-users] [type_traits] an is_iterator, not is_pointer, trait"
- Next in thread: Belcourt, K. Noel: "Re: [Boost-users] [type_traits] an is_iterator, not is_pointer, trait"
- Reply: Belcourt, K. Noel: "Re: [Boost-users] [type_traits] an is_iterator, not is_pointer, trait"
> 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
Frédéric
- Next message: Belcourt, K. Noel: "Re: [Boost-users] [type_traits] an is_iterator, not is_pointer, trait"
- Previous message: Belcourt, K. Noel: "[Boost-users] [type_traits] an is_iterator, not is_pointer, trait"
- In reply to: Belcourt, K. Noel: "[Boost-users] [type_traits] an is_iterator, not is_pointer, trait"
- Next in thread: Belcourt, K. Noel: "Re: [Boost-users] [type_traits] an is_iterator, not is_pointer, trait"
- Reply: Belcourt, K. Noel: "Re: [Boost-users] [type_traits] an is_iterator, not is_pointer, trait"
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net