Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

Should not use std::move in return statements #12

Open
webern opened this issue Jan 20, 2018 · 0 comments
Open

Should not use std::move in return statements #12

webern opened this issue Jan 20, 2018 · 0 comments

Comments

@webern
Copy link

webern commented Jan 20, 2018

Clang warns us that

Moving a temporary object prevents copy elision

I think that we generally don't want to be using std::move in the return statement.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant