File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -36,9 +36,7 @@ class ref_ptr
3636 ref_ptr () : _ptr(0 ) {}
3737 ref_ptr (T* ptr) : _ptr(ptr) { if (_ptr) _ptr->ref (); }
3838 ref_ptr (const ref_ptr& rp) : _ptr(rp._ptr) { if (_ptr) _ptr->ref (); }
39- #if __cplusplus >= 201103L
4039 ref_ptr (ref_ptr&& rp) noexcept : _ptr(rp._ptr) { rp._ptr = 0 ; }
41- #endif
4240 template <class Other > ref_ptr (const ref_ptr<Other>& rp) : _ptr(rp._ptr) { if (_ptr) _ptr->ref (); }
4341 ref_ptr (observer_ptr<T>& optr) : _ptr(0 ) { optr.lock (*this ); }
4442 ~ref_ptr () { if (_ptr) _ptr->unref (); _ptr = 0 ; }
@@ -55,7 +53,6 @@ class ref_ptr
5553 return *this ;
5654 }
5755
58- #if __cplusplus >= 201103L
5956 template <class Other > ref_ptr& operator = (ref_ptr<Other>&& rp)
6057 {
6158 if (_ptr == rp._ptr ) return *this ;
@@ -64,7 +61,6 @@ class ref_ptr
6461 rp._ptr = nullptr ;
6562 return *this ;
6663 }
67- #endif
6864
6965 inline ref_ptr& operator = (T* ptr)
7066 {
You can’t perform that action at this time.
0 commit comments