Boost Users :
From: John Moeller (fishcorn_at_[hidden])
Date: 2008-06-18 18:33:21
Noah Roberts <roberts.noah <at> gmail.com> writes:
> 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
> > 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.
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