On Wednesday, 2 September 2020 at 21:40:59 UTC, Steven
Schveighoffer wrote:
What they can do is template the `this` parameter. Then if the
underlying range supports calling that way, it will work,
otherwise it won't.
using `template this` should be compatible with the existing
code I would
On 9/2/20 5:23 PM, SimonN wrote:
Hi,
About this issue in Phobos:
https://issues.dlang.org/show_bug.cgi?id=21216
SortedRange.empty should be const, .front should be inout
Just adding const/inout to SortedRange's methods won't be enough; if we
add const/inout here, then many other Phobos ranges
Hi,
About this issue in Phobos:
https://issues.dlang.org/show_bug.cgi?id=21216
SortedRange.empty should be const, .front should be inout
Just adding const/inout to SortedRange's methods won't be enough;
if we add const/inout here, then many other Phobos ranges need to
become