Fix compilation errors copying SharedPtr<> of different types in gcc.

This commit is contained in:
David Capello 2010-09-30 16:31:45 -03:00
parent c4d04d7bf6
commit d19e7875e1

View File

@ -13,8 +13,6 @@
template<class T>
class SharedPtr
{
friend class SharedPtr;
public:
SharedPtr()
@ -105,6 +103,8 @@ private:
T* m_ptr; // The pointee object.
int* m_refCount; // Number of references.
template<class T2> friend class SharedPtr;
};
// Compares if two shared-pointers points to the same place (object,