Bug 14373 – std.range.refRange doesn't work on mere input ranges

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-03-29T11:28:00Z
Last change time
2017-07-19T17:42:49Z
Keywords
pull
Assigned to
nobody
Creator
ag0aep6g

Comments

Comment #0 by ag0aep6g — 2015-03-29T11:28:23Z
struct R { @property int front() {return 0;} void popFront() {empty = true;} bool empty = false; } void main() { import std.range: refRange; R r; refRange(&r).popFront(); assert(r.empty); /* fails */ } Pull request incoming.
Comment #1 by ag0aep6g — 2015-03-29T11:33:03Z
Comment #2 by github-bugzilla — 2015-04-17T19:47:31Z
Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/ca4e7d22ecdc53d1529fd88c71ff94198ac44303 fix Issue 14373 - std.range.refRange doesn't work on mere input ranges https://github.com/D-Programming-Language/phobos/commit/f4894c6302286c95fc63b48bdffeb1d658f5cd7a Merge pull request #3123 from aG0aep6G/14373 fix Issue 14373 - std.range.refRange doesn't work on mere input ranges
Comment #3 by github-bugzilla — 2017-07-19T17:42:49Z
Commits pushed to dmd-cxx at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/ca4e7d22ecdc53d1529fd88c71ff94198ac44303 fix Issue 14373 - std.range.refRange doesn't work on mere input ranges https://github.com/dlang/phobos/commit/f4894c6302286c95fc63b48bdffeb1d658f5cd7a Merge pull request #3123 from aG0aep6G/14373