Skip to content

<__msvc_string_view.hpp>: Avoid redundant forwarding in char_traits::assign #5488

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

Merged
merged 1 commit into from
May 17, 2025

Conversation

frederick-vs-ja
Copy link
Contributor

#3334 (and following-up #4047) made basic_string correctly handle lifetime of elements in constant evaluation, and #4613 made char_traits::assign no longer consider lifetime of elements (as specified by the standard).

However, there're some forwarding calls in char_traits::assign (added by #2305) that were made redundant but not removed. This PR removes the redundant forwarding.

@frederick-vs-ja frederick-vs-ja requested a review from a team as a code owner May 10, 2025 18:00
@github-project-automation github-project-automation bot moved this to Initial Review in STL Code Reviews May 10, 2025
@StephanTLavavej StephanTLavavej added the enhancement Something can be improved label May 11, 2025
@StephanTLavavej StephanTLavavej moved this from Initial Review to Ready To Merge in STL Code Reviews May 11, 2025
@StephanTLavavej StephanTLavavej moved this from Ready To Merge to Merging in STL Code Reviews May 16, 2025
@StephanTLavavej
Copy link
Member

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

@StephanTLavavej StephanTLavavej merged commit dfceace into microsoft:main May 17, 2025
39 checks passed
@github-project-automation github-project-automation bot moved this from Merging to Done in STL Code Reviews May 17, 2025
@StephanTLavavej
Copy link
Member

Thanks for noticing and removing this dead code! 🧟 🧠 😻

@frederick-vs-ja frederick-vs-ja deleted the pure-assign-2 branch May 18, 2025 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Something can be improved
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants