mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 18:42:41 +01:00
-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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user