Hi Guys,

Just a quick note, I'm not about to move ref_ptr<> and associated code
out of the OSG into a separate library - as Paul notes I'm trying to
keep a lid on the number of external dependencies.

Add ref_ptr<> into OpenThreads isn't appropriate either, as
OpenThreads is threading library.

Its worth noting ref_ptr<> doesn't depend upon anything other than
templates.  Just check the header to ref_ptr<> yourself.  All it does
is require ref(),. unref() and unref_nodelete() to be available on the
class its bound to at compile time.

This loose coupling means that you could use the OSG safely without
your own ref_ptr<>, or use non OSG objects (once not even subclassed
from osg::Referenced) with osg::ref_ptr<> - as long as they implement
the ref counting.

Finally there is boost, it has its own collection of smart pointers.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to