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

Fix UB in in-place construction #99

Merged
merged 2 commits into from
May 14, 2024
Merged

Conversation

mingxwa
Copy link
Collaborator

@mingxwa mingxwa commented May 14, 2024

This PR replaces the current char array used for in-place construction with std::byte. This improves code clarity and avoids potential UB.

Fixes #98

@mingxwa mingxwa requested review from tian-lt and guominrui May 14, 2024 07:11
@mingxwa mingxwa self-assigned this May 14, 2024
@mingxwa mingxwa marked this pull request as ready for review May 14, 2024 07:11
@mingxwa mingxwa merged commit 29d6f68 into microsoft:main May 14, 2024
4 checks passed
@mingxwa mingxwa deleted the user/mingxwa/ub branch May 14, 2024 14:39
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.

Use std::byte for in-place object construction
2 participants