[libcxx-commits] [libcxxabi] [libc++] Bump the C++ Standard used to compile the dylib to C++23 (PR #66824)
via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Sep 20 14:34:54 PDT 2023
================
@@ -34,7 +35,7 @@ class _LIBCPP_HIDDEN __sso_allocator<void, _Np>
template <class _Tp, size_t _Np>
class _LIBCPP_HIDDEN __sso_allocator
{
- typename aligned_storage<sizeof(_Tp) * _Np>::type buf_;
----------------
EricWF wrote:
This can change the object size & alignment, no?
`aligned_storage` may add padding bytes at the end, where this would not. And the alignment wasn't specified when using `aligned_storage`, so it may have been larger than what the type needed.
Are we certain this isn't ABI breaking?
https://github.com/llvm/llvm-project/pull/66824
More information about the libcxx-commits
mailing list