mirror of https://github.com/PentHertz/srsLTE.git
fix gcc4.8 compilation issue
This commit is contained in:
parent
975d004224
commit
9a7f48b6a5
|
@ -171,7 +171,7 @@ public:
|
||||||
} else if (not has_value() and not other.has_value()) {
|
} else if (not has_value() and not other.has_value()) {
|
||||||
swap(unexpected, other.unexpected);
|
swap(unexpected, other.unexpected);
|
||||||
} else if (has_value() and not other.has_value()) {
|
} 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.unexpected.~E();
|
||||||
other.construct_val(std::move(val));
|
other.construct_val(std::move(val));
|
||||||
val.~T();
|
val.~T();
|
||||||
|
|
Loading…
Reference in New Issue