Skip to content

ResultOr<T> not supported Implicit construction #1

Description

@Dup4

Like std::make_shared<T>(), it support implicit construction.

such as, bad case:

auto f = []() -> ResultOr<std::shared_ptr<int>> {
    return nullptr;
};

good case:

auto f = []() -> ResultOr<std::shared_ptr<int>> {
    return std::shared_ptr<int>(nullptr);
};

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions