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

Commit

Permalink
defines thrust::tuple_element consistently with std::tuple_element us…
Browse files Browse the repository at this point in the history
…ing template<size_t, class>
  • Loading branch information
andrewcorrigan authored and alliepiper committed Oct 15, 2020
1 parent e288eaf commit c036413
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
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

0 comments on commit c036413

Please sign in to comment.