
3 Oct
2008
3 Oct
'08
7:23 p.m.
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.