This commit is contained in:
Simon Brand
2018-06-07 08:17:39 +01:00
parent 568f6d1801
commit 72e23a137e

View File

@@ -723,7 +723,7 @@ struct expected_operations_base : expected_storage_base<T, E> {
} }
constexpr const unexpected<E> &geterr() const & { return this->m_unexpect; } constexpr const unexpected<E> &geterr() const & { return this->m_unexpect; }
TL_EXPECTED_11_CONSTEXPR unexpected<E> &&geterr() && { TL_EXPECTED_11_CONSTEXPR unexpected<E> &&geterr() && {
std::move(this->m_unexpect); return std::move(this->m_unexpect);
} }
#ifndef TL_EXPECTED_NO_CONSTRR #ifndef TL_EXPECTED_NO_CONSTRR
constexpr const unexpected<E> &&geterr() const && { constexpr const unexpected<E> &&geterr() const && {