mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-12-24 10:23:01 -06:00
synchronized_wrapper: Add missing return in SynchronizedRef move assignment operator
This commit is contained in:
parent
5bca1e6adf
commit
b9fb46ac9d
1 changed files with 1 additions and 0 deletions
|
@ -55,6 +55,7 @@ public:
|
|||
SynchronizedRef& operator=(SynchronizedRef&) = delete;
|
||||
SynchronizedRef& operator=(SynchronizedRef&& o) {
|
||||
std::swap(wrapper, o.wrapper);
|
||||
return *this;
|
||||
}
|
||||
|
||||
T& operator*() { return wrapper->data; }
|
||||
|
|
Loading…
Reference in a new issue