writing iterators without code duplication. inout?
jakobovrum at gmail.com
Wed Dec 21 08:34:37 PST 2011
On Wednesday, 21 December 2011 at 16:31:01 UTC, Jakob Ovrum wrote:
> On Wednesday, 21 December 2011 at 16:07:55 UTC, Timon Gehr
>> Just remove the non-const overload. const member functions
>> work with mutable, immutable and const receivers.
> The const version does not allow using 'ref' when iterating.
In light of pompei2's recent reply;
the const version *should not* allow using 'ref' when iterating.
More information about the Digitalmars-d-learn