Skip to content

Replace std::forward for clang-tidy#4236

Merged
vitaut merged 1 commit intofmtlib:masterfrom
Arghnews:fix_use_after_move_in_join_view
Nov 14, 2024
Merged

Replace std::forward for clang-tidy#4236
vitaut merged 1 commit intofmtlib:masterfrom
Arghnews:fix_use_after_move_in_join_view

Conversation

@Arghnews
Copy link
Copy Markdown
Contributor

Should fix #4231

Fix was a little different than I thought initially, due to trickiness of getting const right

Could instead use <!std::is_copy_constructible_v<It>, It&, It>; as of course view_ref is just dependent on this. I don't see or have a strong preference either way

Copy link
Copy Markdown
Contributor

@vitaut vitaut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

@Arghnews Arghnews force-pushed the fix_use_after_move_in_join_view branch from 03e1128 to fa49e15 Compare November 14, 2024 08:05
@Arghnews Arghnews requested a review from vitaut November 14, 2024 08:42
@vitaut vitaut merged commit 9ced61b into fmtlib:master Nov 14, 2024
@vitaut
Copy link
Copy Markdown
Contributor

vitaut commented Nov 14, 2024

Merged, thanks!

@mattgodbolt
Copy link
Copy Markdown

Thank you all!

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.

Possible use-after-move in join()

3 participants