Problems with sort

Stanislav Blinov stanislav.blinov at gmail.com
Fri Dec 10 17:00:50 PST 2010


On 12/11/2010 03:48 AM, Craig Black wrote:
> The following code gives me this error:
> algorithm.d(5159): Error: template instance SortedRange!(Range,less)
> does not match template declaration SortedRange(Range,alias pred = "a <
> b") if (isRandomAccessRange!(Unqual!(Range)))
>
> Any clue as to what is going on here?

My guess is isRandomAccessRange constraint fails, because your range 
does not offer opIndex().



More information about the Digitalmars-d mailing list