File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -80,11 +80,6 @@ class resptr_base
8080 T* prhs = rhs._get ();
8181 _set (prhs);
8282 }
83- ICF void _set (resptr_base<T>&& rhs)
84- {
85- p_ = rhs.p_ ;
86- rhs.p_ = nullptr ;
87- }
8883 ICF T* _get () const { return p_; }
8984 void _clear () { p_ = 0 ; }
9085};
@@ -111,23 +106,13 @@ class resptr_core : public C
111106 C::p_ = rhs.p_ ;
112107 C::_inc ();
113108 }
114- resptr_core (self&& rhs) noexcept
115- {
116- C::p_ = rhs.p_ ;
117- rhs.p_ = nullptr ;
118- }
119109 ~resptr_core () { C::_dec (); }
120110 // assignment
121111 self& operator =(const self& rhs)
122112 {
123113 this ->_set (rhs);
124114 return (self&)*this ;
125115 }
126- self& operator =(self&& rhs) noexcept
127- {
128- this ->_set (std::move (rhs));
129- return (self&)*this ;
130- }
131116
132117 // accessors
133118 T& operator *() const { return *C::p_; }
You can’t perform that action at this time.
0 commit comments