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

defines thrust::tuple_element consistently with std::tuple_element #1314

Merged
merged 1 commit into from
Oct 15, 2020
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
4 changes: 2 additions & 2 deletions thrust/detail/tuple.inl
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ template <
class tuple;

// forward declaration of tuple_element
template<int i, typename T> struct tuple_element;
template<size_t N, class T> struct tuple_element;

// specializations for tuple_element
template<class T>
Expand All @@ -60,7 +60,7 @@ template<class T>
typedef typename T::head_type type;
}; // end tuple_element<0,T>

template<int N, class T>
template<size_t N, class T>
struct tuple_element<N, const T>
{
private:
Expand Down
2 changes: 1 addition & 1 deletion thrust/pair.h
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ template <typename T1, typename T2>
* \tparam N This parameter selects the member of interest.
* \tparam T A \c pair type of interest.
*/
template<int N, typename T> struct tuple_element;
template<size_t N, class T> struct tuple_element;


/*! This convenience metafunction is included for compatibility with
Expand Down
2 changes: 1 addition & 1 deletion thrust/tuple.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ struct null_type;
* \see pair
* \see tuple
*/
template<int N, class T>
template<size_t N, class T>
struct tuple_element
{
private:
Expand Down