[Issue 21216] SortedRange.empty should be const, .front should be inout

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Sep 8 15:34:37 UTC 2020


--- Comment #1 from Simon Naarmann <eiderdaus at gmail.com> ---
Discussion on the D Forums:

Gist: Instead of adding const/inout, which might not fit every wrapped range,
we should use `template this` to let the compiler figure out the appropriate
annotations for empty/front/... individually for each wrapped range.


More information about the Digitalmars-d-bugs mailing list