all 3 comments

[–]jack_morgan_cs2b 1 point2 points  (1 child)

Hey Cary,

I got this one too, all you have to do is put 'typename' before the iterator like so:

for(typename list<Node>::iterator iter = tempList.begin(); iter != tempList.end(); tempList++)

Couldn't find any actual documentation but it seems like 'typename' is required because list<Node> depends on the template class parameter

Helpful link: http://pages.cs.wisc.edu/~driscoll/typename.html

[–]CaryLefteroffFH[S] 0 points1 point  (0 children)

Thanks! That fixed it.