February 10, 2008 sort! (std.algorithm) | ||||
|---|---|---|---|---|
| ||||
Hello , I inspire myself with the example from std.algorithm :
int[] array = ([ 1, 2, 3, 4 ]).dup;
sort!("a < b")(array);
return 0;
and i have two errors :
/opt/dmd/bin/../src/phobos/std/algorithm.d(393): variable std.algorithm.getPivot!(compFn).getPivot!(int*).getPivot.r final cannot be applied to variable
/opt/dmd/bin/../src/phobos/std/algorithm.d(404): template instance std.algorithm.getPivot!(compFn).getPivot!(int*) error instantiating
thanks in advance
| ||||
February 10, 2008 Re: sort! (std.algorithm) | ||||
|---|---|---|---|---|
| ||||
Posted in reply to vargas | vargas wrote:
> and i have two errors : /opt/dmd/bin/../src/phobos/std/algorithm.d(393): variable std.algorithm.getPivot!(compFn).getPivot!(int*).getPivot.r final cannot be applied to variable
> /opt/dmd/bin/../src/phobos/std/algorithm.d(404): template instance std.algorithm.getPivot!(compFn).getPivot!(int*) error instantiating
Edit std/algorithm.d and remove the 'final' keyword. (This will be done in the next update.)
| |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply