Skip to content

Commit 2bc01d1

Browse files
misccodavebayer
authored andcommitted
Remove deprecated cub::min (NVIDIA#3450)
* Remove deprecated `cuda::{min,max}` * Drop unused `thrust::remove_cvref` file
1 parent e364cc9 commit 2bc01d1

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

cub/cub/util_macro.cuh

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -49,26 +49,6 @@
4949

5050
CUB_NAMESPACE_BEGIN
5151

52-
#ifndef _CCCL_DOXYGEN_INVOKED // Do not document
53-
# define CUB_PREVENT_MACRO_SUBSTITUTION
54-
template <typename T, typename U>
55-
CCCL_DEPRECATED_BECAUSE("Use cuda::std::min from <cuda/std/functional> instead")
56-
constexpr _CCCL_HOST_DEVICE auto min CUB_PREVENT_MACRO_SUBSTITUTION(T&& t, U&& u)
57-
-> decltype(t < u ? ::cuda::std::forward<T>(t) : ::cuda::std::forward<U>(u))
58-
{
59-
return t < u ? ::cuda::std::forward<T>(t) : ::cuda::std::forward<U>(u);
60-
}
61-
62-
template <typename T, typename U>
63-
CCCL_DEPRECATED_BECAUSE("Use cuda::std::max from <cuda/std/functional> instead")
64-
constexpr _CCCL_HOST_DEVICE auto max CUB_PREVENT_MACRO_SUBSTITUTION(T&& t, U&& u)
65-
-> decltype(t < u ? ::cuda::std::forward<U>(u) : ::cuda::std::forward<T>(t))
66-
{
67-
return t < u ? ::cuda::std::forward<U>(u) : ::cuda::std::forward<T>(t);
68-
}
69-
# undef CUB_PREVENT_MACRO_SUBSTITUTION
70-
#endif
71-
7252
#ifndef CUB_MAX
7353
/// Select maximum(a, b)
7454
/// Deprecated since [2.8]

0 commit comments

Comments
 (0)