Skip to content

Replace std::forward for clang-tidy - #4236

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

vitaut merged 1 commit into
fmtlib: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

@vitaut vitaut left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the PR!

Comment thread include/fmt/ranges.h Outdated
@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

vitaut commented Nov 14, 2024

Copy link
Copy Markdown
Contributor

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