Skip to content

expected::value_or is missing default template argument #12

Closed

Description

@mcencora

Without default template argument (U = std::remove_cv_t) following code will fail:

int main()
{
    zeus::expected<int, int> e;
    return e.value_or({});
}

Activity

  1. X1aomu commented on Apr 1, 2025

    @X1aomu
    Contributor

    Thanks for your feedback! You helped me find LWG-3886 and I will consider implementing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions