Skip to content

Commit

Permalink
Block pack type pack indexing unless C++26 is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
wmaxey committed Oct 10, 2024
1 parent 71daebf commit 0509232
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcudacxx/include/cuda/std/__type_traits/type_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ struct _CCCL_TYPE_VISIBILITY_DEFAULT __type_defer
{};

// Implementation for indexing into a list of types:
# if defined(__cpp_pack_indexing)
# if defined(__cpp_pack_indexing) && (_CCCL_STD_VER >= 2026)

template <size_t _Ip, class... _Ts>
using __type_index_c = _Ts...[_Ip];
Expand Down

0 comments on commit 0509232

Please sign in to comment.