I'm using the following singleton model for all of my resource managers.
static CSingleton *m_pInstance;
CSingleton& operator(const CSingleton&);
static CSingleton *Instance();
My resource managers are then derived from CSingleton.
if (m_pInstance==NULL) m_pInstance=new CSingleton;
How would I go about creating a templated version of this singleton class to allow for differing types w/o having to derive from CSingleton?