|
|
- #include <iostream>
- #include <list>
- #include <iterator>
- template <class T>
- class test
- {
- public:
- typedef std::list<T*> LIST;
- typename std::list<T*>::iterator IT;
- test(){};
- ~test(){};
- void aaa(LIST a)
- {
- IT b;//这行gcc编译出错
- };
- T* bbb(IT pos)//这行gcc和cl编译都出错
- {
- T* c;
- //.....
- return c;
- };
- };
- int main()
- {
- return 0;
- }
复制代码
请指教,thanks! |
|