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.

Reply via email to