Feb. 13, 2009
2:21 a.m.
HI, The am not sure if which call policy I should be using for this particular use case, class Singleton { public: Singleton* create() { if(!_instance) { _instance = new Singleton(); } return _instance; } static Singleton* _instance; } // Initialization Singleton* _instance=NULL; Is return_value_policy<reference_existing_object> the right call policy to use? Thanks, Shiva