help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Iterator with template no longer a type in g++3.?


From: Xin Wang
Subject: Iterator with template no longer a type in g++3.?
Date: Sun, 3 Apr 2005 13:24:22 -0700


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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]