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:
parent
fc4b990a7a
commit
953ac782ac
@ -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(); }
|
||||
|
Loading…
Reference in New Issue
Block a user