-change access from private to protected for shared ptr members. it allows to extend shared ptr to work together with derived classes. in other words it allows to extend shared ptr

This commit is contained in:
Robert Acksel
2017-03-06 16:34:03 +01:00
parent 7e4c84e1e2
commit 8fd909a016

View File

@@ -378,7 +378,7 @@ public:
return _pCounter->referenceCount();
}
private:
protected:
C* deref() const
{
if (!_ptr)
@@ -408,7 +408,7 @@ private:
_pCounter->duplicate();
}
private:
protected:
RC* _pCounter;
C* _ptr;