Subject: Re: [boost] [range] [general] making member functions SFINAE-friendly
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2013-02-19 12:00:13
On 18-02-2013 13:32, Mathias Gaunard wrote:
> 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.
Would using enable_if on size() not solve the problem?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk