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

Fix move temp const check #261

Merged
merged 6 commits into from
Dec 11, 2023
Merged

Fix move temp const check #261

merged 6 commits into from
Dec 11, 2023

Conversation

T-rvw
Copy link
Contributor

@T-rvw T-rvw commented Dec 11, 2023

const check didn't work in the past. You can have a try to pass const object to MoveTemp. No warnings because the caller from const is missing after passing parameter :
https://stackoverflow.com/questions/75305558/why-is-stdis-const-v-evaluated-to-false-here

@T-rvw T-rvw requested a review from roeas December 11, 2023 08:52
@T-rvw T-rvw merged commit e7f2343 into main Dec 11, 2023
4 checks passed
@T-rvw T-rvw deleted the fix_move_temp branch December 11, 2023 08:55
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.

1 participant