www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - sort! (std.algorithm)

reply vargas <scriptoff gmail.com> writes:
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
parent Walter Bright <newshound1 digitalmars.com> writes:
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.)
Feb 10 2008