
18 Jun
2008
18 Jun
'08
10:33 p.m.
Noah Roberts
John Moeller wrote:
Hello all,
I am trying to make an "is_range" metafunction that (essentially) returns mpl::true_ when the template parameter is a range (as defined by the boost::range library).
I can do this if I create a specialization for every "non-range" type
specialized by the library (such as built-in arrays, char strings, etc.). However, I'd like to have is_range work for a user-defined range without
currently the
user *also* needing to specialize is_range.
Maybe try something like this: ...
Well, it didn't solve my problem (I don't think there is a solution), but it makes the alternative more compact. Thanks for the advice.