Re: Subclassing Singleton pattern
Tuesday, January 27, 2004 09:42 PM
In the GetSinletonInstance() method you need to first check if the hash table i.e, m_registry contains the instance.If it does not contain then you need to call the constructor and then you need to call m_registry.get() method.
Since you are not doing it the object would never gets created and there is no call to the constructor.Hence the hash table never has the value.
Hope this helps...