Lines 21-27
Link Here
|
21 |
intrusive_base() : ref_count_(0) {} |
21 |
intrusive_base() : ref_count_(0) {} |
22 |
intrusive_base(intrusive_base const&) : ref_count_(0) {} |
22 |
intrusive_base(intrusive_base const&) : ref_count_(0) {} |
23 |
intrusive_base& operator=(intrusive_base const&) { return *this; } |
23 |
intrusive_base& operator=(intrusive_base const&) { return *this; } |
24 |
~intrusive_base() { assert(!ref_count_); } |
24 |
virtual ~intrusive_base() { assert(!ref_count_); } |
25 |
|
25 |
|
26 |
friend void intrusive_ptr_add_ref(T* ptr) |
26 |
friend void intrusive_ptr_add_ref(T* ptr) |
27 |
{ ++ptr->ref_count_; } |
27 |
{ ++ptr->ref_count_; } |