|
Boost Users : |
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-06-17 17:09:05
AMDG
John Moeller wrote:
> I figured out how to do it (and it's pretty simple):
>
> template < typename R, typename V = void >
> struct is_range_impl
> : boost::mpl::false_
> {};
>
> template < typename R >
> struct is_range_impl< R, boost::range_iterator< R > >
> : boost::mpl::true_
> {};
>
> template < typename R >
> struct is_range
> : is_range_impl< R >
> {};
>
> Feel free to pick this apart; I wouldn't mind if it were made better.
>
Won't this always be false?
In Christ,
Steven Watanabe
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