How to foreach over a DList?
Jeroen Bollen
jbinero at gmail.com
Mon Mar 31 12:44:38 PDT 2014
Still not working:
https://gist.github.com/Binero/f30e56351baf05f1a2ec
/usr/include/dlang/dmd/std/container.d(1925): Error: template
std.container.DList!ubyte.DList.insertBeforeNode cannot deduce
function from argument types !()(typeof(null), int), candidates
are:
/usr/include/dlang/dmd/std/container.d(2096):
std.container.DList!ubyte.DList.insertBeforeNode(Stuff)(Node* n,
Stuff stuff) if (isInputRange!Stuff &&
isImplicitlyConvertible!(ElementType!Stuff, T))
/usr/include/dlang/dmd/std/container.d(2155):
std.container.DList!ubyte.DList.insertBeforeNode(Stuff)(Node* n,
Stuff stuff) if (isImplicitlyConvertible!(Stuff, T))
source/app.d(7): Error: template instance
std.container.DList!ubyte.DList.insertBack!int error instantiating
source/app.d(11): Error: need upper and lower bound to slice
pointer
More information about the Digitalmars-d-learn
mailing list