
19 Feb
2013
19 Feb
'13
5 p.m.
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? -Thorsten