[libcxx-commits] [libcxx] [libc++] Remove some of the uses of aligned_storage inside the library (PR #161635)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Oct 9 04:23:22 PDT 2025
================
@@ -148,14 +147,13 @@ template <class _ValueType>
_LIBCPP_HIDE_FROM_ABI add_pointer_t<_ValueType> any_cast(any*) _NOEXCEPT;
namespace __any_imp {
-_LIBCPP_SUPPRESS_DEPRECATED_PUSH
-using _Buffer _LIBCPP_NODEBUG = aligned_storage_t<3 * sizeof(void*), alignof(void*)>;
-_LIBCPP_SUPPRESS_DEPRECATED_POP
+inline constexpr size_t __small_buffer_size = 3 * sizeof(void*);
----------------
philnik777 wrote:
You can't put `alignas` on an alias.
https://github.com/llvm/llvm-project/pull/161635
More information about the libcxx-commits
mailing list