@@ -63,17 +63,17 @@ class _LIBCPP_TEMPLATE_VIS inout_ptr_t {
63
63
}
64
64
}
65
65
66
- using _SP = __pointer_of_or_t <_Smart, _Pointer>;
66
+ using _SmartPtr = __pointer_of_or_t <_Smart, _Pointer>;
67
67
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)...); },
69
69
std::move (__a_));
70
70
} 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)...); },
72
72
std::move (__a_));
73
73
} else {
74
- static_assert (is_constructible_v<_Smart, _SP , _Args...>,
74
+ static_assert (is_constructible_v<_Smart, _SmartPtr , _Args...>,
75
75
" 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)...); },
77
77
std::move (__a_));
78
78
}
79
79
}
0 commit comments