Yet another const problem...

Mehrdad wfunction at hotmail.com
Sun May 20 20:53:06 PDT 2012


On Monday, 21 May 2012 at 03:15:52 UTC, Chris Cain wrote:
> You might can make an argument that a Random Access Range could 
> be const, and I'd agree. There's some useful things you can do 
> with a const random access range.


Hmmm... so if you have some (complicated) random-access range, 
and then you want to overload opApply() (perhaps to let the user 
use multiple loop variables), how are you supposed to do this 
without duplicating your code?


More information about the Digitalmars-d mailing list