This commit is contained in:
Sebastian Messmer 2018-12-24 20:02:40 +01:00
parent 59d6a10d28
commit 7df156b74a

View File

@ -71,7 +71,8 @@ std::vector<std::function<void(either<Left, Right>&)>> EXPECT_IS_LEFT(const Left
}, [&] (auto& obj) { }, [&] (auto& obj) {
EXPECT_EQ(expected, obj.left_opt().value()); EXPECT_EQ(expected, obj.left_opt().value());
}, [&] (auto& obj) { }, [&] (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) { }, [&] (auto& obj) {
EXPECT_EQ(boost::none, obj.right_opt()); EXPECT_EQ(boost::none, obj.right_opt());
}, [&] (auto& obj) { }, [&] (auto& obj) {