File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
libcudacxx/include/cuda/__utility/__basic_any Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -263,16 +263,13 @@ struct _CCCL_TYPE_VISIBILITY_DEFAULT __basic_any<_Interface&> : __basic_any<__ir
263263 this ->__set_ref (__other.__get_vptr (), __other.__get_optr ());
264264 }
265265
266- _CCCL_TEMPLATE (class _Tp ,
267- class _Up = ::cuda::std::remove_reference_t <_Tp>,
268- class _Vp = ::cuda::std::remove_const_t <_Up>)
269- _CCCL_REQUIRES (::cuda::std::is_lvalue_reference_v<_Tp> _CCCL_AND (!__is_basic_any<_Vp>)
270- _CCCL_AND (__is_const_ref || !::cuda::std::is_const_v<_Up>)
271- _CCCL_AND __satisfies<_Vp, interface_type>)
272- _CCCL_API __basic_any (_Tp&& __obj) noexcept
266+ _CCCL_TEMPLATE (class _Tp , class _Up = ::cuda::std::remove_const_t <_Tp>)
267+ _CCCL_REQUIRES ((!__is_basic_any<_Up>) _CCCL_AND (__is_const_ref || !::cuda::std::is_const_v<_Up>)
268+ _CCCL_AND __satisfies<_Up, interface_type>)
269+ _CCCL_API __basic_any (_Tp& __obj) noexcept
273270 : __basic_any<__ireference<_Interface>>()
274271 {
275- __vptr_for<interface_type> const __vptr = ::cuda::__get_vtable_ptr_for<interface_type, _Vp >();
272+ __vptr_for<interface_type> const __vptr = ::cuda::__get_vtable_ptr_for<interface_type, _Up >();
276273 this ->__set_ref (__vptr, &__obj);
277274 }
278275
You can’t perform that action at this time.
0 commit comments