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

Remove unnecessary std::move calls #6537

Merged
merged 1 commit into from
Jan 5, 2022
Merged

Remove unnecessary std::move calls #6537

merged 1 commit into from
Jan 5, 2022

Conversation

steven-johnson
Copy link
Contributor

Compilers with -Werror will fail with error: moving a temporary object prevents copy elision

Compilers with `-Werror` will fail with `error: moving a temporary object prevents copy elision`
@steven-johnson steven-johnson added the backport me This change should be backported to release versions label Jan 5, 2022
@LebedevRI
Copy link
Contributor

Hm, i guess i thought -Werror was enabled in CI and something like that would have been caught.
Sorry.

@alexreinking
Copy link
Member

I'm surprised clang tidy didn't complain about this

@steven-johnson steven-johnson merged commit f8459da into master Jan 5, 2022
@steven-johnson steven-johnson deleted the srj/move-fix branch January 5, 2022 19:10
alexreinking pushed a commit that referenced this pull request Jan 5, 2022
Compilers with `-Werror` will fail with `error: moving a temporary object prevents copy elision`

(cherry picked from commit f8459da)
@alexreinking alexreinking removed the backport me This change should be backported to release versions label Jan 5, 2022
alexreinking pushed a commit that referenced this pull request Jan 6, 2022
Compilers with `-Werror` will fail with `error: moving a temporary object prevents copy elision`

(cherry picked from commit f8459da)
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.

4 participants