From 953ac782ac821c9d05b6edd98cd920d1d79a339d Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 15 Jul 2003 08:17:54 +0000 Subject: [PATCH] From Gideon May, added typedef T element_type; To ref_ptr<> to make it compatible with the boost ref_ptr<> implemenations. --- include/osg/ref_ptr | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/osg/ref_ptr b/include/osg/ref_ptr index f35889caa..704cd21f8 100644 --- a/include/osg/ref_ptr +++ b/include/osg/ref_ptr @@ -22,6 +22,8 @@ class ref_ptr { public: + typedef T element_type; + ref_ptr() :_ptr(0L) {} ref_ptr(T* t):_ptr(t) { if (_ptr) _ptr->ref(); } ref_ptr(const ref_ptr& rp):_ptr(rp._ptr) { if (_ptr) _ptr->ref(); }