Skip to content

Commit

Permalink
Do not rely on thrust::null_type
Browse files Browse the repository at this point in the history
  • Loading branch information
miscco committed Jan 30, 2025
1 parent ef45014 commit 8906740
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/include/cugraph/utilities/thrust_tuple_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ template <typename... Ts>
struct is_thrust_tuple_of_arithmetic<thrust::tuple<Ts...>> {
private:
template <typename T>
static constexpr bool is_valid = std::is_arithmetic_v<T> || std::is_same_v<T, thrust::null_type>;
static constexpr bool is_valid = std::is_arithmetic_v<T>;

public:
static constexpr bool value = (... && is_valid<Ts>);
Expand All @@ -132,7 +132,7 @@ template <typename... Ts>
struct is_thrust_tuple_of_integral<thrust::tuple<Ts...>> {
private:
template <typename T>
static constexpr bool is_valid = std::is_integral_v<T> || std::is_same_v<T, thrust::null_type>;
static constexpr bool is_valid = std::is_integral_v<T>;

public:
static constexpr bool value = (... && is_valid<Ts>);
Expand Down

0 comments on commit 8906740

Please sign in to comment.