expected
expected copied to clipboard
``unexpected<E>`` should provide the member function ``error()``
According to https://en.cppreference.com/w/cpp/utility/expected/unexpected, The C++23 standard uses the member function error()
to access the stored E
inside unexpected<E>
. The library currently uses value()
which is inconsistent.