From 9a7f48b6a5ca414fd3f37beddb3010ad305fe664 Mon Sep 17 00:00:00 2001 From: Francisco Paisana Date: Tue, 5 May 2020 17:30:15 +0100 Subject: [PATCH] fix gcc4.8 compilation issue --- lib/include/srslte/common/expected.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/include/srslte/common/expected.h b/lib/include/srslte/common/expected.h index 749e3b773..b2bb28eba 100644 --- a/lib/include/srslte/common/expected.h +++ b/lib/include/srslte/common/expected.h @@ -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();