Skip to content

Add CheckHasValue() checks to StatusOr<T> operators * and -> #4707

@mr-salty

Description

@mr-salty

Some StatusOr<T> methods like value() check that a value is present by calling CheckHasValue() (effectively an assertion). operator* and operator-> do not, which makes misuses harder to find.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions