February 10, 2008
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
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.)