mirror of
https://git.freebsd.org/ports.git
synced 2025-06-15 17:50:31 -04:00
20 lines
870 B
Text
20 lines
870 B
Text
------------------------------------------------------------------------
|
|
r218295 | akirtzidis | 2014-09-23 08:06:43 +0200 (Tue, 23 Sep 2014) | 2 lines
|
|
|
|
[ADT/IntrusiveRefCntPtr] Give friend access to IntrusiveRefCntPtr<X> so the relevant move constructor can access 'Obj'.
|
|
|
|
------------------------------------------------------------------------
|
|
Index: include/llvm/ADT/IntrusiveRefCntPtr.h
|
|
===================================================================
|
|
--- include/llvm/ADT/IntrusiveRefCntPtr.h (revision 218294)
|
|
+++ include/llvm/ADT/IntrusiveRefCntPtr.h (revision 218295)
|
|
@@ -197,6 +197,9 @@ public:
|
|
private:
|
|
void retain() { if (Obj) IntrusiveRefCntPtrInfo<T>::retain(Obj); }
|
|
void release() { if (Obj) IntrusiveRefCntPtrInfo<T>::release(Obj); }
|
|
+
|
|
+ template <typename X>
|
|
+ friend class IntrusiveRefCntPtr;
|
|
};
|
|
|
|
template<class T, class U>
|