@@ -63,17 +63,17 @@ class _LIBCPP_TEMPLATE_VIS inout_ptr_t {
6363 }
6464 }
6565
66- using _SP = __pointer_of_or_t <_Smart, _Pointer>;
66+ using _SmartPtr = __pointer_of_or_t <_Smart, _Pointer>;
6767 if constexpr (is_pointer_v<_Smart>) {
68- std::apply ([&](auto &&... __args) { __s_ = _Smart (static_cast <_SP >(__p_), std::forward<_Args>(__args)...); },
68+ std::apply ([&](auto &&... __args) { __s_ = _Smart (static_cast <_SmartPtr >(__p_), std::forward<_Args>(__args)...); },
6969 std::move (__a_));
7070 } else if constexpr (__resettable_smart_pointer_with_args<_Smart, _Pointer, _Args...>) {
71- std::apply ([&](auto &&... __args) { __s_.reset (static_cast <_SP >(__p_), std::forward<_Args>(__args)...); },
71+ std::apply ([&](auto &&... __args) { __s_.reset (static_cast <_SmartPtr >(__p_), std::forward<_Args>(__args)...); },
7272 std::move (__a_));
7373 } else {
74- static_assert (is_constructible_v<_Smart, _SP , _Args...>,
74+ static_assert (is_constructible_v<_Smart, _SmartPtr , _Args...>,
7575 " The smart pointer must be constructible from arguments of types _Smart, _Pointer, _Args..." );
76- std::apply ([&](auto &&... __args) { __s_ = _Smart (static_cast <_SP >(__p_), std::forward<_Args>(__args)...); },
76+ std::apply ([&](auto &&... __args) { __s_ = _Smart (static_cast <_SmartPtr >(__p_), std::forward<_Args>(__args)...); },
7777 std::move (__a_));
7878 }
7979 }
0 commit comments