[Issue 18577] New: Loose isForwardRange
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Mar 8 02:00:22 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18577
Issue ID: 18577
Summary: Loose isForwardRange
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: enhancement
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: yshuiv7 at gmail.com
Loose isForwardRange to something like:
isInputRange!R && is(Unqual!(ReturnType!((R r) => r.save)) == Unqual!R)
I'm writing functions that takes a range and produce another range, with the
guarantee that the origin range is not changed. So I need save() to produce a
non-const range from a const one, which does not meet the current
isForwardRange criteria.
--
More information about the Digitalmars-d-bugs
mailing list