#include "ttt.h"
template <class T>
CModel* CreateInstanceCModel(T()) //
{
CModel* tempModel = new T();
m_modelList.Push_Back(tempModel);
return tempModel;
} //
CreateInstanceCModel(ttt( ));
but i would like a contructor in ttt
but no matter how i code the template i cant get it to work , any ideaas?