Skip to content

Commit

Permalink
Avoid compiler issues with default constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
miscco committed Jan 30, 2025
1 parent dbf0eff commit 9e6ecd3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libcudacxx/include/cuda/std/__mdspan/empty_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ struct _CCCL_DECLSPEC_EMPTY_BASES __mdspan_ebco_impl

_CCCL_EXEC_CHECK_DISABLE
_CCCL_TEMPLATE(class... _Args)
_CCCL_REQUIRES(_CCCL_TRAIT(is_constructible, _Elem, _Args...))
_CCCL_REQUIRES((sizeof...(_Args) != 0) _CCCL_AND _CCCL_TRAIT(is_constructible, _Elem, _Args...))
_LIBCUDACXX_HIDE_FROM_ABI constexpr __mdspan_ebco_impl(_Args&&... __args) noexcept(
_CCCL_TRAIT(is_nothrow_constructible, _Elem, _Args...))
: __elem_(_CUDA_VSTD::forward<_Args>(__args)...)
Expand Down Expand Up @@ -75,7 +75,7 @@ struct _CCCL_DECLSPEC_EMPTY_BASES __mdspan_ebco_impl<_Index, _Elem, true> : _Ele

_CCCL_EXEC_CHECK_DISABLE
_CCCL_TEMPLATE(class... _Args)
_CCCL_REQUIRES(_CCCL_TRAIT(is_constructible, _Elem, _Args...))
_CCCL_REQUIRES((sizeof...(_Args) != 0) _CCCL_AND _CCCL_TRAIT(is_constructible, _Elem, _Args...))
_LIBCUDACXX_HIDE_FROM_ABI constexpr __mdspan_ebco_impl(_Args&&... __args) noexcept(
_CCCL_TRAIT(is_nothrow_constructible, _Elem, _Args...))
: _Elem(_CUDA_VSTD::forward<_Args>(__args)...)
Expand Down Expand Up @@ -108,7 +108,7 @@ struct _CCCL_DECLSPEC_EMPTY_BASES __mdspan_ebco<_Elem1> : __mdspan_ebco_impl<0,

_CCCL_EXEC_CHECK_DISABLE
_CCCL_TEMPLATE(class... _Args)
_CCCL_REQUIRES(_CCCL_TRAIT(is_constructible, _Elem1, _Args...))
_CCCL_REQUIRES((sizeof...(_Args) != 0) _CCCL_AND _CCCL_TRAIT(is_constructible, _Elem1, _Args...))
_LIBCUDACXX_HIDE_FROM_ABI constexpr __mdspan_ebco(_Args&&... __args) noexcept(
_CCCL_TRAIT(is_nothrow_constructible, _Elem1, _Args...))
: __base1(_CUDA_VSTD::forward<_Args>(__args)...)
Expand Down

0 comments on commit 9e6ecd3

Please sign in to comment.