This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Template error when using templated type in stl::vector


// Neither of the following compile, though they do in visual studio.

template<typename TParam>
struct MyStruct
{
	MyStruct()
	{
		std::vector<MyStruct*>::iterator i;		
	}
};

template<typename TParam>
struct MyStruct1
{
	MyStruct1()
	{
		std::vector<class MyStruct1<TParam>*>::iterator i;		
	}
};


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]