From 10e687e188dd76513ce7ee5f5897a903379212cf Mon Sep 17 00:00:00 2001 From: Ivan Baidakou Date: Fri, 9 Mar 2018 22:46:02 +0300 Subject: [PATCH] Add return --- tl/optional.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tl/optional.hpp b/tl/optional.hpp index 64c1cdc..f35c779 100644 --- a/tl/optional.hpp +++ b/tl/optional.hpp @@ -372,7 +372,7 @@ template struct optional_operations_base : optional_storage_base { TL_OPTIONAL_11_CONSTEXPR T &get() & { return this->m_value; } TL_OPTIONAL_11_CONSTEXPR const T &get() const & { return this->m_value; } - TL_OPTIONAL_11_CONSTEXPR T &&get() && { std::move(this->m_value); } + TL_OPTIONAL_11_CONSTEXPR T &&get() && { return std::move(this->m_value); } #ifndef TL_OPTIONAL_NO_CONSTRR constexpr const T &&get() const && { return std::move(this->m_value); } #endif