I tried to define a class like:
#include<list> template <class State> class Problem { . . . list<State>::iterator itr; . . . }
The compiler keeps on complaining that list<State>::iterator is not a type, and itr is not declared. What is wrong here?
What should I do to avoid this?
Thanks!
Xin Wang
_______________________________________________ Help-gplusplus mailing list Help-gplusplus@gnu.org http://lists.gnu.org/mailman/listinfo/help-gplusplus