|
Boost : |
Subject: Re: [boost] is_range metafunction
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2008-10-03 15:23:27
Neal Becker 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?
It would check whether the type implements the Range concept.
Which probably isn't doable in C++03.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk