mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-06 21:39:57 +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>
|
||||
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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user