From 7df156b74ae11164eac8c8a5a992218e1b062974 Mon Sep 17 00:00:00 2001 From: Sebastian Messmer Date: Mon, 24 Dec 2018 20:02:40 +0100 Subject: [PATCH] try fix --- test/cpp-utils/either_test.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/cpp-utils/either_test.cpp b/test/cpp-utils/either_test.cpp index b5c0a8ce..2bd65af1 100644 --- a/test/cpp-utils/either_test.cpp +++ b/test/cpp-utils/either_test.cpp @@ -71,7 +71,8 @@ std::vector&)>> EXPECT_IS_LEFT(const Left }, [&] (auto& obj) { EXPECT_EQ(expected, obj.left_opt().value()); }, [&] (auto& obj) { - EXPECT_EQ(expected, std::move(obj).left_opt().value()); + auto a = std::move(obj).left_opt(); + EXPECT_EQ(expected, a.value()); }, [&] (auto& obj) { EXPECT_EQ(boost::none, obj.right_opt()); }, [&] (auto& obj) {