Hi all,

Im trying to write a function template that takes a reference to a vector of pointers to objects. ...if that makes sense.

so far i have in my code (sort of)...

template < class T >
void MyFunc(std::vector < T * > &aVector);

int main()
{
.
.
.
std::vector<MyClass *> vMyObject;
MyFunc(vMyObject);
.
.

}

template < class T >
void MyFunc(std::vector < T * > &aVector)
{
T *pStuff = new T(3,3);
aVector.push_back(pStuff);
}



dont ask y im doing it, i just need to do it. i Get an Internal Compiler Error using VC++.
Any ideas anyone?

Cheers!