[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:25:07 PDT 2026
================
@@ -602,21 +602,21 @@ class _LIBCPP_SHARED_PTR_TRIVIAL_ABI shared_ptr {
template <class _Vp, class = void>
struct __get_shared_from_this {
- using type = __nat;
+ using type _LIBCPP_NODEBUG = __nat;
};
template <class _Vp>
struct __get_shared_from_this<_Vp, __void_t<decltype(__get_shared_from_this_impl(static_cast<_Vp*>(nullptr)))> > {
- using type = const enable_shared_from_this<typename decltype(__get_shared_from_this_impl(
- static_cast<_Vp*>(nullptr)))::type>*;
+ using type = _LIBCPP_NODEBUG const
----------------
philnik777 wrote:
```suggestion
using type _LIBCPP_NODEBUG = const
```
https://github.com/llvm/llvm-project/pull/205776
More information about the libcxx-commits
mailing list