← Back to index
|
Original Bugzilla link
Bug 13922 – std.range.package.takeOne doesn't accept non-forward ranges
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-01-01T13:26:00Z
Last change time
2015-01-01T13:26:43Z
Assigned to
nobody
Creator
sinkuupump
Comments
Comment #0
by sinkuupump — 2015-01-01T13:26:22Z
std.range.package.takeOne doesn't accept non-forward ranges, because it assumes the given range is always a forward range. nonForwardRange.takeOne // Error: template instance std.range.takeOne!(NonForwardRange) error instantiating Originally reported by bioinfornatics on forum(
http://forum.dlang.org/thread/
[email protected]
#post-pxqytmikgipfjkjexuux:40forum.dlang.org).
Pull:
https://github.com/D-Programming-Language/phobos/pull/2808