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

Replace std::forward for clang-tidy #4236

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

Arghnews
Copy link
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
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!

include/fmt/ranges.h Outdated Show resolved Hide resolved
@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
45 checks passed
@vitaut
Copy link
Contributor

vitaut commented Nov 14, 2024

Merged, thanks!

@mattgodbolt
Copy link

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