Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stackful coroutines. #158

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from
Open

stackful coroutines. #158

wants to merge 9 commits into from

Conversation

klemens-morgenstern
Copy link
Collaborator

No description provided.

@klemens-morgenstern klemens-morgenstern changed the title first step on custom coro frame hacking. stackful coroutines. Mar 12, 2024
@klemens-morgenstern klemens-morgenstern marked this pull request as ready for review March 12, 2024 13:28
@klemens-morgenstern
Copy link
Collaborator Author

The only thing we're doing is misusing std::coroutine_handle<void>::address according to it's precondition.

Preconditions: addr was obtained via a prior call to address on an object whose type is a specialization of coroutine_handle.

Additionally, it would be nice if we could change this restriction:

If a program declares an explicit or partial specialization of coroutine_handle, the behavior is undefined.

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.

None yet

1 participant