[Issue 13922] New: std.range.package.takeOne doesn't accept non-forward ranges
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Jan 1 05:26:22 PST 2015
https://issues.dlang.org/show_bug.cgi?id=13922
Issue ID: 13922
Summary: std.range.package.takeOne doesn't accept non-forward
ranges
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: Phobos
Assignee: nobody at puremagic.com
Reporter: sinkuupump at gmail.com
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/pxqytmikgipfjkjexuux@forum.dlang.org#post-pxqytmikgipfjkjexuux:40forum.dlang.org).
Pull: https://github.com/D-Programming-Language/phobos/pull/2808
--
More information about the Digitalmars-d-bugs
mailing list