[phobos] [dlang/phobos] 2a45a1: Fix Issue 16628 - std.algorithm.equal for known em...
GitHub via phobos
phobos at puremagic.com
Sun Oct 30 16:11:39 PDT 2016
Branch: refs/heads/master
Home: https://github.com/dlang/phobos
Commit: 2a45a145e8d29bf0f4a12c8fc8296041e475ea60
https://github.com/dlang/phobos/commit/2a45a145e8d29bf0f4a12c8fc8296041e475ea60
Author: Nick Treleaven <n at trelsoft.com>
Date: 2016-10-20 (Thu, 20 Oct 2016)
Changed paths:
M std/algorithm/comparison.d
Log Message:
-----------
Fix Issue 16628 - std.algorithm.equal for known empty or infinite ranges
* If one of the ranges has `Range.empty == true`, we can define `equal`
even when each `front` is not comparable.
* If one range is infinite and the other defines `length`, return false.
* If both are infinite, cause a compile-time error.
Commit: 52a381320f35f14c26970e9b5842dbe5d429c3c6
https://github.com/dlang/phobos/commit/52a381320f35f14c26970e9b5842dbe5d429c3c6
Author: Nick Treleaven <n at trelsoft.com>
Date: 2016-10-22 (Sat, 22 Oct 2016)
Changed paths:
M std/algorithm/comparison.d
Log Message:
-----------
Disallow known empty ranges to be compared against a range with incompatible front
Commit: 31dad0c099f33b5c584d24ed739e8e5785b71426
https://github.com/dlang/phobos/commit/31dad0c099f33b5c584d24ed739e8e5785b71426
Author: Jonathan M Davis <jmdavis at users.noreply.github.com>
Date: 2016-10-30 (Sun, 30 Oct 2016)
Changed paths:
M std/algorithm/comparison.d
Log Message:
-----------
Merge pull request #4871 from ntrel/equal-empty-enum
Fix Issue 16628 - std.algorithm.equal for known empty or infinite ranges
Compare: https://github.com/dlang/phobos/compare/8e10b4b0f115...31dad0c099f3
More information about the phobos
mailing list