Merge pull request #1151 from lioncash/return

synchronized_wrapper: Add missing return in SynchronizedRef move assignment operator
master
Yuri Kunde Schlesner 2015-09-11 23:23:33 +07:00
commit 042cc00150
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; }