From 2b5d7ed2b34b198e48114ec5582caca4e593036c Mon Sep 17 00:00:00 2001 From: zhuhaow Date: Mon, 3 Sep 2018 18:08:16 +0800 Subject: [PATCH] Add missing `return` keyword (#35) --- tl/expected.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tl/expected.hpp b/tl/expected.hpp index f19e8da..78e8daf 100644 --- a/tl/expected.hpp +++ b/tl/expected.hpp @@ -807,7 +807,7 @@ struct expected_operations_base : expected_storage_base { } constexpr const unexpected &geterr() const & { return this->m_unexpect; } TL_EXPECTED_11_CONSTEXPR unexpected &&geterr() && { - std::move(this->m_unexpect); + return std::move(this->m_unexpect); } #ifndef TL_EXPECTED_NO_CONSTRR constexpr const unexpected &&geterr() const && {