Boost logo

Boost :

Subject: Re: [boost] [range] [general] making member functions SFINAE-friendly
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2013-02-18 07:32:42


On 18/02/13 06:30, Nathan Ridge wrote:

> The suggested workaround is to give iterator_range a base class,
> specialize this base class for random-access iterators, and only
> define size() in this specialization.

This kind of thing is very tedious to do, this is exactly why
class-scope static_if is so useful.


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