Forum Navigation
Iterator copy method?
Posted: 02/12/08 17:28:05What happened to the Iterator copy() method?
I was trying out compiling tangobos/tests/writetest.d and it uses a copy() method.
Is there some other way to do that now? Here's the snipped where copy() is used:
auto iter = intlist.elements(); while(iter.more()) { auto iter0 = iter.copy(); writefln("Iter iter: ", iter.get()); writefln("Iter iter: ", iter.get()); writefln("Iter iter0: ", iter0.get()); }And the error it gives is
writetest.d(36): Error: no property 'copy' for type 'tango.util.collection.model.GuardIterator.GuardIterator!(int).GuardIterator'