[osg-users] osg::observer_ptr and osg::ref_ptr

Robert Osfield robert.osfield at gmail.com
Tue Oct 23 06:24:32 PDT 2018


Hi Kristofer,

On Tue, 23 Oct 2018 at 13:30, Kristofer Krus <kristofer.krus at liu.se> wrote:

> Ah, that's clever. So the observer_ptr basically acts like ref_ptr when it
> comes to the ObserverSet object and deletes that object when the last
> observer_ptr object is destructed? :D
>

Yep, that's the idea.  The ObseverSet sticks around till the last
Referenced object or the last observer_ptr/Observer unref's.

Robert.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20181023/9b4b3e58/attachment.html>


More information about the osg-users mailing list