Merge branch 'master' of github.com:TartanLlama/expected

This commit is contained in:
Simon Brand
2018-09-06 09:33:23 +01:00

View File

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