diff --git a/tl/expected.hpp b/tl/expected.hpp index eb88d39..249c24d 100644 --- a/tl/expected.hpp +++ b/tl/expected.hpp @@ -1164,10 +1164,10 @@ class expected : private detail::expected_move_assign_base, template ::value> * = nullptr> - const U &val() const { + constexpr const U &val() const { return this->m_val; } - const unexpected &err() const { return this->m_unexpect; } + constexpr const unexpected &err() const { return this->m_unexpect; } using impl_base = detail::expected_move_assign_base; using ctor_base = detail::expected_default_ctor_base;