Re: Template error when using templated type in stl::vector

2008-06-18 Thread Andrew McPherson
Thanks! That works. On Wed, Jun 18, 2008 at 8:15 PM, Andrew Pinski <[EMAIL PROTECTED]> wrote: > On Wed, Jun 18, 2008 at 11:06 PM, Andrew McPherson > <[EMAIL PROTECTED]> wrote: >> // Neither of the following compile, though they do in visual studio. >> >> template >> struct MyStruct >> { >>

Re: Template error when using templated type in stl::vector

2008-06-18 Thread Andrew Pinski
On Wed, Jun 18, 2008 at 11:06 PM, Andrew McPherson <[EMAIL PROTECTED]> wrote: > // Neither of the following compile, though they do in visual studio. > > template > struct MyStruct > { >MyStruct() >{ >std::vector::iterator i; You missed the typename keyword. That i

Template error when using templated type in stl::vector

2008-06-18 Thread Andrew McPherson
// Neither of the following compile, though they do in visual studio. template struct MyStruct { MyStruct() { std::vector::iterator i; } }; template struct MyStruct1 { MyStruct1() { std::vector*>::iterator i;