[Issue 8772] New: DList.remove doesn't work with result of std.range.take
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Oct 6 20:40:16 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8772
Summary: DList.remove doesn't work with result of
std.range.take
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: callumenator at gmail.com
--- Comment #0 from callumenator at gmail.com 2012-10-06 20:28:16 PDT ---
DMD v2.060
import std.range, std.algorithm, std.container;
void main()
{
auto list = DList!int([1,2,3,4,5]);
list.remove(list[].find(3).take(1));
}
Error: function std.container.DList!(int).DList.remove (Range r) is not
callable using argument types (Take!(Range))
However, DList.linearRemove does work with take.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list