
Many thanks that works fine! The singleton is really created on request.
I have one additional question about destruction of singletons. This simple
example was compiled with VC++ 7.1
#include
Ovanes Markarian wrote:
Hello,
I am currently evaluating boost.singleton for our application. I hope it is not too late to write a review. As I understood from the docs, Singleton instance is immediately (when all global and static variables are initilized) created. In our context we need singleton to be created on first request (as it is described in GoF).
Singleton is created on demand.