Skip to content

Commit

Permalink
fix removed type in array
Browse files Browse the repository at this point in the history
  • Loading branch information
davebayer committed Jan 14, 2025
1 parent b05f219 commit 2a3f793
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libcudacxx/include/cuda/std/detail/libcxx/include/array
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,7 @@ template <size_t _Ip, class _Tp, size_t _Size>
struct _CCCL_TYPE_VISIBILITY_DEFAULT tuple_element<_Ip, array<_Tp, _Size>>
{
static_assert(_Ip < _Size, "Index out of bounds in std::tuple_element<> (std::array)");
using type = _Tp;
};

template <size_t _Ip, class _Tp, size_t _Size>
Expand Down

0 comments on commit 2a3f793

Please sign in to comment.