[Issue 22608] RandomAccessInfinite is not a valid random-access range
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Dec 19 00:42:24 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22608
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pull
--- Comment #1 from Dlang Bot <dlang-bot at dlang.rocks> ---
@pbackus created dlang/phobos pull request #8338 "Fix issue 22608 -
RandomAccessInfinite is not a valid random-access range" fixing this issue:
- Fix issue 22608 - RandomAccessInfinite is not a valid random-access range
Previously, isInfinite!(RandomAccessInfinite!T) would always evaluate to
false, because the 'empty' method inherited from InputRange could not be
evaluated at compile time. Since isRandomAccessRange!R requires
(isBidirectionalRange!R || isInfinite!R), this meant that
RandomAccessInfinite!T was not recognized as a random-access range.
https://github.com/dlang/phobos/pull/8338
--
More information about the Digitalmars-d-bugs
mailing list