fix gcc4.8 compilation issue

This commit is contained in:
Francisco Paisana 2020-05-05 17:30:15 +01:00 committed by Francisco Paisana
parent 975d004224
commit 9a7f48b6a5
1 changed files with 1 additions and 1 deletions

View File

@ -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();