From Gideon May, added

typedef T element_type;

To ref_ptr<> to make it compatible with the boost ref_ptr<> implemenations.
This commit is contained in:
Robert Osfield 2003-07-15 08:17:54 +00:00
parent fc4b990a7a
commit 953ac782ac

View File

@ -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(); }