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

Check That Atomics Are Trivially Initializable In Configure #214

Open
insertinterestingnamehere opened this issue Dec 7, 2023 · 0 comments

Comments

@insertinterestingnamehere
Copy link
Collaborator

While fixing #186, I noticed that there's an implicit assumption that atomics are trivially initializable. This is fine since it's true on all the architectures we currently support, but in the future we should either check that this is true or remove the assumption. The easiest way is probably just to assert somewhere in the configure script that (in C++11) static_assert(std::is_trivially_constructible<std::atomic<std::uintptr_t>>::value, "Trivially initializable atomics are required.")

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