Navigation Menu

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

removed harmful std::moves from return statements #1454

Merged
merged 1 commit into from Apr 13, 2015
Merged

Conversation

AntonBikineev
Copy link
Contributor

These std::moves prevent compiler from using NRVO.
In case it's difficult for compiler to use RVO (e.g. several return statements), move constructor will be used anyways.

@hkaiser
Copy link
Member

hkaiser commented Apr 12, 2015

LGTM. Thanks!

sithhell added a commit that referenced this pull request Apr 13, 2015
removed harmful std::moves from return statements
@sithhell sithhell merged commit 2e200fc into master Apr 13, 2015
@sithhell sithhell deleted the returned_moves branch April 13, 2015 05:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants