mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 19:10:20 +01:00
applied a SharedPtr fix from Chris Jones
This commit is contained in:
@@ -194,8 +194,8 @@ public:
|
|||||||
{
|
{
|
||||||
Other* pOther = dynamic_cast<Other*>(_ptr);
|
Other* pOther = dynamic_cast<Other*>(_ptr);
|
||||||
if (pOther)
|
if (pOther)
|
||||||
return SharedPtr<Other>(_pCounter, pOther);
|
return SharedPtr<Other, RC>(_pCounter, pOther);
|
||||||
return SharedPtr<Other>();
|
return SharedPtr<Other, RC>();
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class Other>
|
template <class Other>
|
||||||
|
|||||||
Reference in New Issue
Block a user