My mistake. Sorry. The solution is to change this line
for(vector<T*>::iterator it = v.begin(); it != v.end(); it++)
to
for(typename vector<T*>::iterator it = v.begin(); it != v.end(); it++)
** Changed in: gcc-4.2 (Ubuntu)
Status: New => Invalid
--
iterator for vector of pointers to generic type won't compile
https://bugs.launchpad.net/bugs/311663
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs