Skip to content

util::Result has confusing interface for std::*_ptr T #26004

@luke-jr

Description

@luke-jr

util::Result<std::unique_ptr<...>> treats a nullptr as a true value. This has caused at least one bug so far.

Can we easily forbid passing nullptr in this way? Is there a better/safer solution?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions