Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jbaldwin
Copy link
Owner

User @baderouaich identified that libcoro's sync_wait on a complex object would invoke an extra move constructor that other coroutine libraries did not. This change now correctly forwards the return_value into the promise if the object is move constructible instead of double moving.

Closes #286

User @baderouaich identified that libcoro's sync_wait on a complex
object would invoke an extra move constructor that other coroutine
libraries did not. This change now correctly forwards the return_value
into the promise if the object is move constructible instead of double
moving.

Closes #286
@jbaldwin jbaldwin self-assigned this Feb 18, 2025
@jbaldwin jbaldwin merged commit 5ace337 into main Feb 18, 2025
37 checks passed
@jbaldwin jbaldwin deleted the sync-wait-extra-move branch February 18, 2025 22:28
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.

Destructor called more than once

2 participants