From Neil Groves, added intrusive_ptr_add_ref and intrusive_ptr_release methods to enable

usage of boost::intrusive_ptr<> with osg::Referenced objects.
This commit is contained in:
Robert Osfield
2008-10-03 13:34:32 +00:00
parent 281f55a55c
commit eb5a656f4e

View File

@@ -185,6 +185,10 @@ inline void Referenced::unref() const
}
}
// intrusive_ptr_add_ref and intrusive_ptr_release allow
// use of osg Referenced classes with boost::intrusive_ptr
inline void intrusive_ptr_add_ref(Referenced* p) { p->ref(); }
inline void intrusive_ptr_release(Referenced* p) { p->unref(); }
#else