I used to tell people "once you become familiar with ref_ptrs, you'll learn where you need them and where you don't, and you can get away with using regular C/C++ pointers in some cases." I've stopped telling people this, because I have caught myself multiple times using regular C/C++ pointers, then later changing the code and assuming it was ref counted, and therefore introducing a leak.
Yes, it's best to always use ref_ptr. Paul Martz Skew Matrix Software LLC http://www.skew-matrix.com +1 303 859 9466 -----Original Message----- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Rabbi Robinson Sent: Friday, May 29, 2009 8:38 AM To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] osg::ref_ptr<> used anymore Hi, Thanks for the replies. They really clarified a lot. Looks like for small pointer, it's all or none deal, e.g. it's best to use them every time a reference to the pointed object is needed. Thank you! Cheers, Rabbi ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=13175#13175 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org