[Issue 21810] New: Check for sortedness in `merge` must not use `==`
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Apr 8 09:39:49 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=21810
Issue ID: 21810
Summary: Check for sortedness in `merge` must not use `==`
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: arne.ludwig at posteo.de
Checking sortedness according to a given predicate must not use `==` operator
because it may not be in accordance with the predicate.
In `std.algorithm.sorting.merge` this is happening which produces an
unjustified error in some cases.
--
More information about the Digitalmars-d-bugs
mailing list