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<typename TParam> > struct MyStruct > { > MyStruct() > {
> std::vector<MyStruct*>::iterator i; You missed the typename keyword. That is it should be "typename std::vector<MyStruct*>::iterator i;" > } > }; > > template<typename TParam> > struct MyStruct1 > { > MyStruct1() > { > std::vector<class MyStruct1<TParam>*>::iterator i; Likewise. typename std::vector<class MyStruct1<TParam>*>::iterator i; -- Pinski