On 04/26/2013 11:18 AM, David Callu wrote:
oups beter like this, or with any other smart pointerMyClass & getInstance() { static osg::ref_ptr<MyClass> myClass( new MyClass() ); return *myClass; }
I wonder, why would you want a reference counting smart pointer for a singleton? There will be only a single instance, no matter what you do, so the smart pointer is useless.
Regards, Jan _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

