so wrote:
> There is a simple workaround for this type of ranges that are like
> iterators, which we know the beginning and the end.
> We can improve isForwardRange!R by adding a line hasForwardRange!R. If it
> does have, we return an adaptor which gives us a mutable range.
> Good thing is because the original range is mutable we don't need to worry
> about anything else.

Wouldn't that be quite invasive? I imagine every function that would want to 
work
on ranges would then have to provide two versions, one that does the work and 
one
that calls the other version after having applied the adaptor(s)?

Cheers,
-Timon

Reply via email to