Original Post
I don't understand why it doesn't work. I can't create the iterator for a particular nested template declaration. Here goes. template void GraphNode::doSomething() { list< GraphNode* > data; // works fine data.push_back(new GraphNode()); // works fine too list< GraphNode* >::iterator iter; // Doesn't work and I don't get it! // error message was // error: expected `;' before "iter" } What was it that I do wrongly? Please help. Regards.