Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
William8915 opened this issue Jul 6, 2023 · 0 comments
Open

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

William8915 opened this issue Jul 6, 2023 · 0 comments

Comments

@William8915
Copy link

William8915 commented Jul 6, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant