Skip to content

Transform std::expected into error or value #1433

Answered by maikel
mathisloge asked this question in Q&A
Discussion options

You must be logged in to vote

The implementation in stdexec optimizes for various things.

I made this example not very long ago for a naive implementation of the then sender, maybe that helps you. https://godbolt.org/z/5qczb9dhh

I will try to make a tutorial on sender adaptors soonish, but maybe someone else has already done so.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@mathisloge
Comment options

@maikel
Comment options

Answer selected by mathisloge
@mathisloge
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants