mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-11 21:57:55 +00:00
[ADT/IntrusiveRefCntPtr] Give friend access to IntrusiveRefCntPtr<X> so the relevant move constructor can access 'Obj'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218295 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
66e6cd27a3
commit
72bffaafb4
@ -197,6 +197,9 @@ public:
|
|||||||
private:
|
private:
|
||||||
void retain() { if (Obj) IntrusiveRefCntPtrInfo<T>::retain(Obj); }
|
void retain() { if (Obj) IntrusiveRefCntPtrInfo<T>::retain(Obj); }
|
||||||
void release() { if (Obj) IntrusiveRefCntPtrInfo<T>::release(Obj); }
|
void release() { if (Obj) IntrusiveRefCntPtrInfo<T>::release(Obj); }
|
||||||
|
|
||||||
|
template <typename X>
|
||||||
|
friend class IntrusiveRefCntPtr;
|
||||||
};
|
};
|
||||||
|
|
||||||
template<class T, class U>
|
template<class T, class U>
|
||||||
|
Loading…
Reference in New Issue
Block a user