On a related note, in boost, there is the concept of intrusive pointer
(which I believe has similar semantics to ref_ptr).
http://www.boost.org/doc/libs/1_54_0/libs/smart_ptr/intrusive_ptr.html
It just rang some bells in my memory, so I figured I would post.
Regards,
Judson
On 7/31/2013 4:51 PM, Alexandre Vaillancourt wrote:
As Ulrich said, it's a bad idea.
osg::ref_ptr works from _withing_ the object (roughly) while
std::shared_ptr works from the outside.
You'll have to use the osg::ref_ptr for everything that is osg:: and
std::shared_ptr for everything else.
There is also the osg::observer_ptr for 'weak' references.
--
Alexandre Vaillancourt
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org