Skip to content

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

@William8915

Description

@William8915

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions