Skip to content

Commit

Permalink
Do not rely on thrust::null_type (#4904)
Browse files Browse the repository at this point in the history
`thrust::null_type` is deprecated and also not used anymore so it does not help looking for it

It will be removed in a future CCCL release

Authors:
  - Michael Schellenberger Costa (https://github.com/miscco)
  - Chuck Hastings (https://github.com/ChuckHastings)

Approvers:
  - Bradley Dice (https://github.com/bdice)
  - Chuck Hastings (https://github.com/ChuckHastings)

URL: #4904
  • Loading branch information
miscco authored Feb 6, 2025
1 parent 998724b commit 7536353
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cpp/include/cugraph/utilities/thrust_tuple_utils.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2020-2024, NVIDIA CORPORATION.
* Copyright (c) 2020-2025, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down 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 7536353

Please sign in to comment.