From 2ac96c8ae38dc7c72e90600eadae3049fd6a82c8 Mon Sep 17 00:00:00 2001 From: Simon Brand Date: Tue, 5 Dec 2017 20:35:14 +0000 Subject: [PATCH] Add missing return --- expected.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/expected.hpp b/expected.hpp index 5d817a5..d985b71 100644 --- a/expected.hpp +++ b/expected.hpp @@ -570,7 +570,7 @@ struct expected_operations_base : expected_storage_base { TL_EXPECTED_11_CONSTEXPR T &get() & { return this->m_val; } constexpr const T &get() const & { return this->m_val; } - TL_EXPECTED_11_CONSTEXPR T &&get() && { std::move(this->m_val); } + TL_EXPECTED_11_CONSTEXPR T &&get() && { return std::move(this->m_val); } #ifndef TL_EXPECTED_NO_CONSTRR constexpr const T &&get() const && { return std::move(this->m_val); } #endif