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

Add move semantics to sbuffer in c++11 mode #353

Merged
merged 3 commits into from Aug 19, 2015

Conversation

jonitis
Copy link
Contributor

@jonitis jonitis commented Aug 18, 2015

sbuffer class would benefit from move semantics, so that it can be returned from functions.

P.S.
I've moved deleted copy constructor/assignment operator (= delete) from private section to public. Scott Meyers was suggesting this, so that compiler may provide better error message (not that it is only not accessible, but that it is explicitly deleted).

@redboltz
Copy link
Contributor

Thank you for sending the PR.

P.S.
I've moved deleted copy constructor/assignment operator (= delete) from private section to public. Scott Meyers was suggesting this, so that compiler may provide better error message (not that it is only not accessible, but that it is explicitly deleted).

Thanks, I read EMC++ and 100% agree with you and Scott.

redboltz added a commit that referenced this pull request Aug 19, 2015
Add move semantics to sbuffer in c++11 mode
@redboltz redboltz merged commit a0b7e7c into msgpack:master Aug 19, 2015
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