expected icon indicating copy to clipboard operation
expected copied to clipboard

``unexpected<E>`` should provide the member function ``error()``

Open William8915 opened this issue 1 year ago • 0 comments

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.

William8915 avatar Jul 06 '23 16:07 William8915