关于GCC中编译一个模版的问题
有这么一段代码
在VC8.0中编译无问题,而在GCC 3.4.3中死都编译不通过,看出错是map<int,T>::iterator未定义.哪位指点一下.
#include <map>
using namespace std;
template<typename T>
struct AAA{
map<int,T> m;
void test(){
for (map<int,T>::iterator it=m.begin();it!=m.end();it++){
}
}
}
int main(){
return 0;
}