Skip to content

Should a specific exception be thrown when the expected<T,exception_ptr> does have a value neither an exception stored? #14

@viboes

Description

@viboes

The following call in (1) is undefined behavior. Should a specific exception be thrown?

expected<int, exception_ptr> e{unexpect, exception_ptr{}}; 
e.value(); // (1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions