So sorry if this is a way too obvious question but what is the
difference between observer_ptr and ref_ptr?  And when would you use one
over the other? 
 
 
osg::observer_ptr   :  Smart pointer for observed objects, that
automatically set pointers to them to null when they deleted
osg::ref_ptr                :    Smart pointer for handling referenced
counted objects
 
 
They seem to do the same thing.  At least I was able to replace all
observer_ptr with ref_ptr and the example still compiled and ran.
 
 
Best Regards
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to