This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Template error when using templated type in stl::vector
- From: "Andrew McPherson" <andrew dot mcpherson at gmail dot com>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 18 Jun 2008 20:06:23 -0700
- Subject: 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;
}
};