Skip to content

Remove C++23 use of std::unexpected from result.h.#895

Open
copybara-service[bot] wants to merge 1 commit intomainfrom
test_905229720
Open

Remove C++23 use of std::unexpected from result.h.#895
copybara-service[bot] wants to merge 1 commit intomainfrom
test_905229720

Conversation

@copybara-service
Copy link
Copy Markdown

Remove C++23 use of std::unexpected from result.h.

In practice, this turns out to not work how we want because
std::unexpected imposes more constraints on it's template parameter
than we do (it can't be a forward declared type). It'd be nice if we
could reuse types, but given it's a compilation error remove them in
favor of always using our own types.

In practice, this turns out to not work how we want because
`std::unexpected` imposes more constraints on it's template parameter
than we do (it can't be a forward declared type). It'd be nice if we
could reuse types, but given it's a compilation error remove them in
favor of always using our own types.

PiperOrigin-RevId: 905229720
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant