KEMBAR78
`<__msvc_string_view.hpp>`: Avoid redundant forwarding in `char_traits::assign` by frederick-vs-ja · Pull Request #5488 · microsoft/STL · GitHub
Skip to content

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