fix gcc4.8 compilation issue

master
Francisco Paisana 5 years ago committed by Francisco Paisana
parent 975d004224
commit 9a7f48b6a5

@ -171,7 +171,7 @@ public:
} else if (not has_value() and not other.has_value()) {
swap(unexpected, other.unexpected);
} else if (has_value() and not other.has_value()) {
E err{std::move(other.unexpected)};
E err(std::move(other.unexpected));
other.unexpected.~E();
other.construct_val(std::move(val));
val.~T();

Loading…
Cancel
Save