Skip to content

Commit 0fd9b08

Browse files
committed
Revert "xrCore/xr_resource.h: move semantic support" (fixes #1804)
This reverts commit 3882c5c.
1 parent d62c9b6 commit 0fd9b08

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

src/xrCore/xr_resource.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff 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_; }

0 commit comments

Comments
 (0)