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

Replace std::aligned_storage with alignas(T) std::array<Byte, sizeof(T)> #51

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mikaellindemann
Copy link

As described in #49, std::aligned_storage was deprecated in C++23, which causes warnings and/or build errors depending on consuming project settings.

I have tried to implement the proposed migration of using an aligned array of bytes instead.

My local tooling (g++-13) also complained that the code is using a platform specific value, without specifying the value in a compiler flag, so I added -Wno-interference-size to the compiler flags to silence that warning.

I'm not sure how to verify if this harms performance of the library. Any pointers or help would be appreciated on that matter.

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.

1 participant