mirror of
https://github.com/aseprite/aseprite.git
synced 2024-09-15 15:14:16 +00:00
Fix compilation errors copying SharedPtr<> of different types in gcc.
This commit is contained in:
parent
c4d04d7bf6
commit
d19e7875e1
@ -13,8 +13,6 @@
|
|||||||
template<class T>
|
template<class T>
|
||||||
class SharedPtr
|
class SharedPtr
|
||||||
{
|
{
|
||||||
friend class SharedPtr;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
SharedPtr()
|
SharedPtr()
|
||||||
@ -105,6 +103,8 @@ private:
|
|||||||
|
|
||||||
T* m_ptr; // The pointee object.
|
T* m_ptr; // The pointee object.
|
||||||
int* m_refCount; // Number of references.
|
int* m_refCount; // Number of references.
|
||||||
|
|
||||||
|
template<class T2> friend class SharedPtr;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Compares if two shared-pointers points to the same place (object,
|
// Compares if two shared-pointers points to the same place (object,
|
||||||
|
Loading…
Reference in New Issue
Block a user