From 72e23a137e90ae3cd03c47e039879bc21d06e14f Mon Sep 17 00:00:00 2001 From: Simon Brand Date: Thu, 7 Jun 2018 08:17:39 +0100 Subject: [PATCH] Fix #24 --- tl/expected.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tl/expected.hpp b/tl/expected.hpp index 51a0c16..a4be506 100644 --- a/tl/expected.hpp +++ b/tl/expected.hpp @@ -723,7 +723,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 && {