We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
std::aligned_storage is deprecated in newer versions of C++.
typename std::aligned_storage<sizeof(T), alignof(T)>::type m_initial_buffer[INITIAL_SIZE];
https://github.com/Z3Prover/z3/blob/84092cbd96a1d4c65bea6db2370807b19519704e/src/util/buffer.h#L33C5-L33C95
What is the correct change (to alignas(T)...)?
The text was updated successfully, but these errors were encountered:
This is addressed in https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p1413r3.pdf which suggests using alignas(T) std::byte buf[...], but with some caveats and discussion.
alignas(T) std::byte buf[...]
Sorry, something went wrong.
918ac2b
nunoplopes
No branches or pull requests
std::aligned_storage is deprecated in newer versions of C++.
https://github.com/Z3Prover/z3/blob/84092cbd96a1d4c65bea6db2370807b19519704e/src/util/buffer.h#L33C5-L33C95
What is the correct change (to alignas(T)...)?
The text was updated successfully, but these errors were encountered: