A user in IRC was having difficulty using std.algorithm.sort on a static array. It appears to be due to static arrays don't pass the isRandomAccessRange constraint.

    static assert(isRandomAccessRange!(uint[5]));

Results in:

Error: static assert (isRandomAccessRange!(uint[5u])) is false

Is this a bug or am I missing something?

Regards,
Brad Anderson

Reply via email to