Skip to content
This repository was archived by the owner on Jan 29, 2026. It is now read-only.

Fix UB in in-place construction#99

Merged
mingxwa merged 2 commits intomicrosoft:mainfrom
mingxwa:user/mingxwa/ub
May 14, 2024
Merged

Fix UB in in-place construction#99
mingxwa merged 2 commits intomicrosoft:mainfrom
mingxwa:user/mingxwa/ub

Conversation

@mingxwa
Copy link
Contributor

@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 guominrui and tian-lt 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
@mingxwa mingxwa deleted the user/mingxwa/ub branch May 14, 2024 14:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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