digitalmars.D - sort! (std.algorithm)
- vargas (9/9) Feb 10 2008 Hello , I inspire myself with the example from std.algorithm :
- Walter Bright (3/6) Feb 10 2008 Edit std/algorithm.d and remove the 'final' keyword. (This will be done
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
Feb 10 2008
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 instantiatingEdit std/algorithm.d and remove the 'final' keyword. (This will be done in the next update.)
Feb 10 2008