Merge pull request #6 from basiliscos/add-return

Add return
This commit is contained in:
Simon Brand
2018-03-19 08:13:38 +00:00
committed by GitHub

View File

@@ -372,7 +372,7 @@ template <class T> struct optional_operations_base : optional_storage_base<T> {
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