C++23 compatibility
NikolajBjorner opened this issue · comments
std::aligned_storage is deprecated in newer versions of C++.
typename std::aligned_storage<sizeof(T), alignof(T)>::type m_initial_buffer[INITIAL_SIZE];
What is the correct change (to alignas(T)...)?
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.