[libcxx-commits] [libcxx] [libc++] Add missing attribute usages to `<__memory/shared_ptr.h>` (PR #205776)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jun 25 04:17:43 PDT 2026
================
@@ -90,7 +90,7 @@ class weak_ptr;
template <class _Tp, class _Dp, class _Alloc>
class _LIBCPP_HIDE_STRUCT_FROM_ABI __shared_ptr_pointer final : public __shared_weak_count {
- using __alloc_t = __allocator_traits_rebind_t<_Alloc, __shared_ptr_pointer>;
+ using __alloc_t _LIBCPP_DEBUG = __allocator_traits_rebind_t<_Alloc, __shared_ptr_pointer>;
----------------
philnik777 wrote:
```suggestion
using __alloc_t _LIBCPP_NODEBUG = __allocator_traits_rebind_t<_Alloc, __shared_ptr_pointer>;
```
https://github.com/llvm/llvm-project/pull/205776
More information about the libcxx-commits
mailing list