Commit b8f3e7c1 authored by Dominik Charousset's avatar Dominik Charousset

Fix bug in disengaged expected<T>

parent 84ff0158
...@@ -164,7 +164,7 @@ public: ...@@ -164,7 +164,7 @@ public:
else { else {
destroy(); destroy();
engaged_ = false; engaged_ = false;
new (&value_) caf::error(std::move(e)); new (&error_) caf::error(std::move(e));
} }
return *this; return *this;
} }
......
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