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

msvc::no_unique_address #499

Open
mglisse opened this issue Jun 22, 2024 · 0 comments
Open

msvc::no_unique_address #499

mglisse opened this issue Jun 22, 2024 · 0 comments

Comments

@mglisse
Copy link

mglisse commented Jun 22, 2024

According to https://devblogs.microsoft.com/cppblog/msvc-cpp20-and-the-std-cpp20-switch/#c20-no_unique_address , MSVC ignores [[no_unique_address]], but some versions provide [[msvc::no_unique_address]] and actually act on it (this has also been added to compatible compilers like clang-18+).
Would it make sense for BOOST_ATTRIBUTE_NO_UNIQUE_ADDRESS to expand to this attribute under the right conditions?

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

No branches or pull requests

1 participant