On 9/12/13, Joseph Rushton Wakeling <[email protected]> wrote:
> import std.range;
>
> void main()
> {
>      assert(isRandomAccessRange!(const(size_t[])));
> }
>
> .... results in an assertion error.  This is a bug, no ... ?

I think ranges have to be non-const. I mean how can you iterate over
one if e.g. popFront can't manipulate the inner state?

Maybe you meant:

const(size_t)[]

P.S. you can use a 'static assert' in your code.

Reply via email to