Boost logo

Boost :

Subject: Re: [boost] is_range metafunction
From: Alp Mestan (alp_at_[hidden])
Date: 2008-10-03 13:55:11


I guess it has to possess a ::value static boolean...
Regarding the code that determines whether the parameter is a range or not,
hmm it's like you can/want.

On 10/3/08, Neal Becker <ndbecker2_at_[hidden]> wrote:
>
> I could use one to enable a range constructor only where appropriate:
>
> class X {
> template<typename range_t>
> X (range_t const&, enable_if<is_range<range_t> >::type *dummy=0)
>
> Question is, what might 'is_range' look like?
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>

-- 
Alp Mestan
--- http://blog.mestan.fr/
--- http://alp.developpez.com/
--- In charge of the Qt, Algorithms and Artificial Intelligence sections on
Developpez

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk