Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@frederick-vs-ja
Copy link
Contributor

@frederick-vs-ja frederick-vs-ja commented Apr 21, 2024

As specified in [char.traits.specializations], char_traits::assign should just perform assignments. #1502 made these functions also start lifetime of elements since C++20, but this is possibly wrong as the difference is theoretically observable due to lack of constant evaluation failure. This PR reverts changes of char_traits::assign.

Notes:

Edit:

@frederick-vs-ja frederick-vs-ja requested a review from a team as a code owner April 21, 2024 14:52
@StephanTLavavej StephanTLavavej added the enhancement Something can be improved label Apr 21, 2024
@StephanTLavavej
Copy link
Member

Thanks - I agree that this change is correct and desirable. Extra thanks for doing the archaeology to find the PRs that made this no longer necessary. 😻

@StephanTLavavej StephanTLavavej self-assigned this Apr 26, 2024
@StephanTLavavej
Copy link
Member

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

Copy link
Contributor

@CaseyCarter CaseyCarter left a comment

Choose a reason for hiding this comment

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

Excellent! I'm so glad to see this go away.

@StephanTLavavej StephanTLavavej merged commit fe7f82e into microsoft:main Apr 26, 2024
@StephanTLavavej
Copy link
Member

Thanks again for noticing that this weird old code was no longer necessary! 😻 🦅 👁️

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.

3 participants