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

Pass payload by value to enable moving arguments #173

Merged
merged 4 commits into from Oct 19, 2022

Conversation

marcomagdy
Copy link
Contributor

Response payloads can be quite large. This change allows users to avoid copying the payload by doing:

invocation_response::success(std::move(m_payload), ..);

The change is backwards compatible, and has no negative effect on users passing argument with the old style.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@marcomagdy marcomagdy marked this pull request as ready for review October 16, 2022 03:21
@bmoffatt bmoffatt merged commit 8e98808 into awslabs:master Oct 19, 2022
@marcomagdy marcomagdy deleted the pass-by-value branch October 19, 2022 20:24
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

2 participants