Commit 2cc11799 authored by Dominik Charousset's avatar Dominik Charousset

Fix move operator for function view

parent 2cb9fa20
...@@ -107,7 +107,10 @@ public: ...@@ -107,7 +107,10 @@ public:
} }
function_view(function_view&& x) : impl_(std::move(x.impl_)) { function_view(function_view&& x) : impl_(std::move(x.impl_)) {
new_self(impl_); if (impl_) {
new (&self_) scoped_actor(std::move(x.self_));
x.self_.~scoped_actor();
}
} }
function_view& operator=(function_view&& x) { function_view& operator=(function_view&& x) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment