File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -61,25 +61,25 @@ class resptr_core : public C
61
61
typedef resptr_core<T, C> self;
62
62
public:
63
63
// construction
64
- resptr_core () { p_ = 0 ; }
65
- resptr_core (T* p, bool add_ref = true ) { p_ = p; if (add_ref) _inc (); }
66
- resptr_core (const self& rhs) { p_ = rhs.p_ ; _inc (); }
67
- ~resptr_core () { _dec (); }
64
+ resptr_core () { C:: p_ = 0 ; }
65
+ resptr_core (T* p, bool add_ref = true ) { C:: p_ = p; if (add_ref) C:: _inc (); }
66
+ resptr_core (const self& rhs) { C:: p_ = rhs.p_ ; C:: _inc (); }
67
+ ~resptr_core () { C:: _dec (); }
68
68
69
69
// assignment
70
70
self& operator = (const self& rhs) { _set (rhs); return (self&)*this ; }
71
71
72
72
// accessors
73
- T& operator *() const { return *p_; }
74
- T* operator ->() const { return p_; }
73
+ T& operator *() const { return *C:: p_; }
74
+ T* operator ->() const { return C:: p_; }
75
75
76
76
// unspecified bool type
77
77
typedef T* (resptr_core::*unspecified_bool_type) () const ;
78
- operator unspecified_bool_type () const { return p_ == 0 ? 0 : &resptr_core::_get; }
79
- bool operator ! () const { return p_ == 0 ; }
78
+ operator unspecified_bool_type () const { return C:: p_ == 0 ? 0 : &resptr_core::_get; }
79
+ bool operator ! () const { return C:: p_ == 0 ; }
80
80
81
81
// fast swapping
82
- void swap (self& rhs) { T* tmp = p_; p_ = rhs.p_ ; rhs.p_ = tmp; }
82
+ void swap (self& rhs) { T* tmp = C:: p_; C:: p_ = rhs.p_ ; rhs.p_ = tmp; }
83
83
};
84
84
85
85
// res_ptr == res_ptr
You can’t perform that action at this time.
0 commit comments