Boost logo

Boost Users :

Subject: Re: [Boost-users] Range library suggestion
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2013-01-23 12:58:01


On 23/01/13 17:39, John M. Dlugosz wrote:
> I just added my second metafunction of the form is_range_of_X<T> for use
> with enable_if, and although the first one took some fiddleing to pass
> both compilers I was using, the second was a clone of the first with the
> name and type changed. So it really ought to be a general purpose
> is_range_of<Whatever, T> metafunction.

I assume it it's simply something like
is_same<typename mpl::eval_if< is_range<T>, range_value<T>, void>::type,
Whatever>

?


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