S
Shawn McGrath
Hey, I can't get DeletableSingleton to actually delete the singleton.
The code is:
typedef Loki::SingletonHolder<GenClass Loki::CreateUsingNew,
Loki:eletableSingleton> Gen;
....
Gen::Instance();
....
Loki:eletableSingleton<Gen>::GracefulDelete();
The destructor for GenClass never gets called until termination (ie:
via atexit()).
Does anyone have any experience with Loki's DeletableSingleton ?
Thanks
- Shawn.
The code is:
typedef Loki::SingletonHolder<GenClass Loki::CreateUsingNew,
Loki:eletableSingleton> Gen;
....
Gen::Instance();
....
Loki:eletableSingleton<Gen>::GracefulDelete();
The destructor for GenClass never gets called until termination (ie:
via atexit()).
Does anyone have any experience with Loki's DeletableSingleton ?
Thanks
- Shawn.