using std.algorithm.topN with std.range.zip fails with undefined swap

2013-12-17 Thread Nikhil Padmanabhan
Hi, Trying to compile : import std.stdio, std.range, std.algorithm; void main() { auto a = [2.0,1.0,3.0]; struct Point { double x; } auto b = [Point(4.0), Point(5.0), Point(6.0)]; topN!("a[0] < b[0]")(zip(a,b),1); //sort!("a[0] <

using std.algorithm.topN with std.range.zip fails with undefined swap

2013-12-16 Thread Nikhil Padmanabhan
(apologies in advance if this posts multiple times, I messed up the sending email address the first time). Hi, Trying to compile : import std.stdio, std.range, std.algorithm; void main() { auto a = [2.0,1.0,3.0]; struct Point { double x; } auto b = [Point(4.0), Point(5.0), Point(6.0)]; topN!("