isRandomAccessRange!(const(size_t[])) is false ... ?
Ali Çehreli
acehreli at yahoo.com
Thu Sep 12 15:12:48 PDT 2013
On 09/12/2013 02:53 PM, Joseph Rushton Wakeling wrote:
> import std.range;
>
> void main()
> {
> assert(isRandomAccessRange!(const(size_t[])));
> }
>
> .... results in an assertion error. This is a bug, no ... ?
That one is fine. You probably want a slice of const(size_t):
import std.range;
void main()
{
assert(!isRandomAccessRange!(const(size_t[])));
assert( isRandomAccessRange!(const(size_t)[])); // <--
}
Ali
More information about the Digitalmars-d-learn
mailing list