Skip to content

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

Merged
copybara-service[bot] merged 1 commit intomainfrom
test_905229720
Apr 28, 2026
Merged

Remove C++23 use of std::unexpected from result.h.#895
copybara-service[bot] merged 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.

@copybara-service copybara-service Bot force-pushed the test_905229720 branch 10 times, most recently from eebf6bf to 29f37d8 Compare April 28, 2026 19:57
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: 907144725
@copybara-service copybara-service Bot merged commit ca4ffb8 into main Apr 28, 2026
@copybara-service copybara-service Bot deleted the test_905229720 branch April 28, 2026 20:19
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