Home  Writing  Games  Music  Dev  About 

Iterators

Iterators for variables/types with Templates need typname in front to tell the compiler that this is the type for the iterator.

template void foo() { list>::iterator it1; // OK without typename typename list>::iterator it2; // typename necessary }