|
Chris,
Yes. To use osg::ref_ptr<> the object has to be derived from osg::Object. That's where the reference count code is. Roland --
ROLAND HILL Director Four Winds Technology Pty Ltd Ph/Fax : +61 (0)2 6366 9425 Mobile : +61 (0)41 880 7472 [email protected] Privacy
and
Confidentiality Notice
The information
contained
herein and any attachments are intended solely for the named
recipients. It may contain privileged confidential
information. If you
are not an intended recipient, please delete the message and
any
attachments then notify the sender of miss-delivery. Any use
or
disclosure of the contents of either is unauthorised and may
be
unlawful. All liability for viruses are excluded to the
fullest extent
permitted by law.
On Thu, Sep 5, 2013 at 6:26 AM, Chris Stankevitz <[email protected]> wrote:Thank you. I did not expect that behavior, although I knew I was wrong about something. There must be some interesting plumbing that allowsI see now. osg::ref_ptr is more like an intrusive_ptr than a shared_ptr. The reference counts are stored within the object, not within the smart pointer.Chris _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org |
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

