$include_dir="/home/hyper-archives/boost-users/include";
include("$include_dir/msg-header.inc")
?>
- Next message: Frédéric Bron: "Re: [Boost-users] [type_traits] an is_iterator, not is_pointer, trait"
- Previous message: Frédéric Bron: "Re: [Boost-users] [type_traits] an is_iterator, not is_pointer, trait"
- In reply to: Frédéric Bron: "Re: [Boost-users] [type_traits] an is_iterator, not is_pointer, trait"
- Next in thread: Frédéric Bron: "Re: [Boost-users] [type_traits] an is_iterator, not is_pointer, trait"
- Reply: Frédéric Bron: "Re: [Boost-users] [type_traits] an is_iterator, not is_pointer, trait"
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
- Next message: Frédéric Bron: "Re: [Boost-users] [type_traits] an is_iterator, not is_pointer, trait"
- Previous message: Frédéric Bron: "Re: [Boost-users] [type_traits] an is_iterator, not is_pointer, trait"
- In reply to: Frédéric Bron: "Re: [Boost-users] [type_traits] an is_iterator, not is_pointer, trait"
- Next in thread: Frédéric Bron: "Re: [Boost-users] [type_traits] an is_iterator, not is_pointer, trait"
- Reply: Frédéric Bron: "Re: [Boost-users] [type_traits] an is_iterator, not is_pointer, trait"
$include_dir="/home/hyper-archives/boost-users/include";
include("$include_dir/msg-footer.inc");
?>