Boost logo

Boost :

Subject: [boost] is_range metafunction
From: Neal Becker (ndbecker2_at_[hidden])
Date: 2008-10-03 13:12:39


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?


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