I\'m currently trying to implement a factory as a singleton. I practically used the textbook example of the Singleton pattern. Here\'s the .h file:
namespace
In your c++ add this:
boost::shared_ptr ImpFactory::mInstance;