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]; } --