Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Issue 18280 - std.algorithm.comparison.cmp for non-strings should…
… call opCmp only once per item pair split cmp into two overloads per @andralex #6056 (review) Minor adjustments, again cmp should return auto and let opCmp drive #6056 (comment) Fix Issue 18285 - std.algorithm.comparison.cmp for strings with custom predicate compares lengths wrong Test std.algorithm.comparison.cmp when opCmp returns float Promotions should not use cast Optimize cmp's endgame There are some redundant tests when the end of the ranges is reached. Eliminated that, and improved threeWayByPred. Fix Issue 18286 - std.algorithm.comparison.cmp for string with custom predicate fails if distinct chars can compare equal Fix Issue 18288 - std.algorithm.comparison.cmp for wide strings should be @safe re-apply remove cast in promotions
- Loading branch information
Showing
1 changed file
with
206 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters