[Issue 6384] std.traits.isComparable

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jul 26 08:40:54 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6384



--- Comment #1 from kennytm at gmail.com 2011-07-26 08:40:51 PDT ---
Note that `std.algorithm.sort` can accept arbitrary predicate, and you can use
something like


    Complex!double[] cmplxarr;
    ...
    sort!"a.re < b.re"(cmplxarr);


If the purpose is to improve the error message of `std.algorithm.sort`,
`isComparable` won't work.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list