Yet another const problem...

Chris Cain clcain at uncg.edu
Sun May 20 17:39:11 PDT 2012


On Monday, 21 May 2012 at 00:07:06 UTC, Mehrdad wrote:
> How do you fix this without duplicating your code?

Simple. Don't use const for input/forward ranges. Input ranges
are more or less only useful if they're mutable because they
mutate basically by definition.

Now the _contents_ of the input range may be immutable or const,
but that's something else all together.


More information about the Digitalmars-d mailing list