Line 0
Link Here
|
|
|
1 |
$FreeBSD$ |
2 |
------------------------------------------------------------------------ |
3 |
r218295 | akirtzidis | 2014-09-23 08:06:43 +0200 (Tue, 23 Sep 2014) | 2 lines |
4 |
|
5 |
[ADT/IntrusiveRefCntPtr] Give friend access to IntrusiveRefCntPtr<X> so the relevant move constructor can access 'Obj'. |
6 |
|
7 |
------------------------------------------------------------------------ |
8 |
Index: include/llvm/ADT/IntrusiveRefCntPtr.h |
9 |
=================================================================== |
10 |
--- include/llvm/ADT/IntrusiveRefCntPtr.h (revision 218294) |
11 |
+++ include/llvm/ADT/IntrusiveRefCntPtr.h (revision 218295) |
12 |
@@ -197,6 +197,9 @@ public: |
13 |
private: |
14 |
void retain() { if (Obj) IntrusiveRefCntPtrInfo<T>::retain(Obj); } |
15 |
void release() { if (Obj) IntrusiveRefCntPtrInfo<T>::release(Obj); } |
16 |
+ |
17 |
+ template <typename X> |
18 |
+ friend class IntrusiveRefCntPtr; |
19 |
}; |
20 |
|
21 |
template<class T, class U> |