[Issue 13621] inout issue with std.container.Array opSlice

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Oct 27 11:45:23 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13621

--- Comment #1 from Martin Nowak <code at dawg.eu> ---
Temporary workaround is to change

    Range opSlice() inout
to
    inout(Range) opSlice() inout

https://github.com/D-Programming-Language/phobos/blob/bf37eef3bd7f2eb643971d9bdfdeb00f67068697/std/container/array.d#L430

and

    Range opSlice(size_t i, size_t j) inout
to
    inout(Range) opSlice(size_t i, size_t j) inout

https://github.com/D-Programming-Language/phobos/blob/bf37eef3bd7f2eb643971d9bdfdeb00f67068697/std/container/array.d#L443

--


More information about the Digitalmars-d-bugs mailing list