Why isn’t this working:
class/struct SomeClass
{
public:
int SomeValue;
}
template <class/struct/typename T> class/struct TClass
{
public:
T TObject;
}
vector<TClass<SomeClass*>> *vTcSomeClass = new vector<TClass<SomeClass*>>();
Is this illegal or am I just doing it wrong?
Your code should compile if you:
> >instead of>>in nested templates (pre C++11)