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

Remove the SNMALLOC_USE_CXX17 C preprocessor symbol #667

Merged
merged 2 commits into from
Jun 28, 2024
Merged

Remove the SNMALLOC_USE_CXX17 C preprocessor symbol #667

merged 2 commits into from
Jun 28, 2024

Conversation

nwf-msr
Copy link
Contributor

@nwf-msr nwf-msr commented Jun 20, 2024

An attempt to simplify some #ifdef mazes (for [[no_unique_address]]) led me to want to test the compiler more directly, which meant that SNMALLOC_USE_CXX17 was largely superfluous, so we can remove it in favor of testing pre-defined preprocessor symbols directly.

In a little more detail, the prior definitions were not sufficient to detect when [[no_unique_address]] would be accepted but ignored. That made deciding when we could kick on #637 by default more... interesting. With this, I hope to have a simpler time of things.

nwf-msr added 2 commits June 20, 2024 18:19
@nwf-msr nwf-msr requested a review from mjp41 June 20, 2024 22:35
Copy link
Member

@mjp41 mjp41 left a comment

Choose a reason for hiding this comment

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

LGTM

@nwf-msr nwf-msr merged commit 6bd6db5 into microsoft:main Jun 28, 2024
47 checks passed
@nwf-msr nwf-msr deleted the 202406-__cplusplus branch June 28, 2024 14:19
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.

2 participants