
17 Jun
2008
17 Jun
'08
9:09 p.m.
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