Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Fix tuple structured bindings #333

Merged
merged 1 commit into from
Nov 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions include/cuda/std/detail/libcxx/include/__tuple
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,14 @@ _LIBCUDACXX_END_NAMESPACE_STD
// See https://github.com/NVIDIA/libcudacxx/issues/316 for a short discussion
#if _LIBCUDACXX_STD_VER > 14
namespace std {
#ifdef _LIBCUDACXX_COMPILER_NVRTC
template <class... _Tp>
struct tuple_size;

template<size_t _Ip, class... _Tp>
struct tuple_element;
#endif

template <class... _Tp>
struct tuple_size<_CUDA_VSTD::tuple<_Tp...>>
: _CUDA_VSTD::tuple_size<_CUDA_VSTD::tuple<_Tp...>>
Expand Down
8 changes: 8 additions & 0 deletions include/cuda/std/detail/libcxx/include/array
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,14 @@ _LIBCUDACXX_END_NAMESPACE_STD
// See https://github.com/NVIDIA/libcudacxx/issues/316 for a short discussion
#if _LIBCUDACXX_STD_VER > 14
namespace std {
#ifdef _LIBCUDACXX_COMPILER_NVRTC
template <class... _Tp>
struct tuple_size;

template<size_t _Ip, class... _Tp>
struct tuple_element;
#endif

template <class _Tp, size_t _Size>
struct tuple_size<_CUDA_VSTD::array<_Tp, _Size>>
: _CUDA_VSTD::tuple_size<_CUDA_VSTD::array<_Tp, _Size>>
Expand Down