[Issue 2871] Take assumes that R.opIndex(uint) returns an lvalue.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 21 14:03:46 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2871





------- Comment #1 from 2korden at gmail.com  2009-04-21 16:03 -------
Can't auto help here?

    static if (isRandomAccessRange!(R))
        auto opIndex(uint index)
        {
            enforce(_maxAvailable > index);
            return _input[index];
        }


-- 



More information about the Digitalmars-d-bugs mailing list