[Issue 10706] Functions that require a sorted range to take a SortedRange?

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Nov 16 12:47:49 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=10706

Dlang Bot <dlang-bot at dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #2 from Dlang Bot <dlang-bot at dlang.rocks> ---
@burner updated dlang/phobos pull request #6795 "Fix Issue 10706 setops
functions need to require SortedRanges" fixing this issue:

- Fix Issue #10706 setops functions need to require SortedRanges

  https://issues.dlang.org/show_bug.cgi?id=10706

  * largestPartialIntersection
  * largestPartialIntersectionWeighted
  * multiwayMerge
  * multiwayUnion
  * setDifference
  * setIntersection
  * setSymmetricDifference

  Now all require SortedRanges to be passed, as that is what they expect
  implicitly anyway.

  A new public symbol `isSortedRange` was added to std.range.
  Comment about usage with non SortedRange ranges
  Add `deprecated` for PR 6795 except on multiwayMerge &
largestPartialIntersectionWeighted
  pragma msg because deprecated will not compile

https://github.com/dlang/phobos/pull/6795

--


More information about the Digitalmars-d-bugs mailing list