From dcb51ad36c3c9a719acbe8524bded112239acf72 Mon Sep 17 00:00:00 2001 From: Bernhard Manfred Gruber Date: Thu, 23 Jan 2025 01:00:44 +0100 Subject: [PATCH] Better deprecation messages --- cub/cub/util_type.cuh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/cub/cub/util_type.cuh b/cub/cub/util_type.cuh index f90801b5b80..8f48abd2fb2 100644 --- a/cub/cub/util_type.cuh +++ b/cub/cub/util_type.cuh @@ -1058,16 +1058,19 @@ struct Traits : NumericTraits::type> } // namespace detail template -using BaseTraits CCCL_DEPRECATED = detail::BaseTraits<_CATEGORY, _PRIMITIVE, _NULL_TYPE, _UnsignedBits, T>; +using BaseTraits CCCL_DEPRECATED_BECAUSE("Use cuda::std::numeric_limits and cuda::is_floating_point etc. instead") = + detail::BaseTraits<_CATEGORY, _PRIMITIVE, _NULL_TYPE, _UnsignedBits, T>; template using FpLimits CCCL_DEPRECATED_BECAUSE("Use cuda::std::numeric_limits instead") = detail::FpLimits; template -using NumericTraits CCCL_DEPRECATED = detail::NumericTraits; +using NumericTraits CCCL_DEPRECATED_BECAUSE("Use cuda::std::numeric_limits and cuda::is_floating_point etc. instead") = + detail::NumericTraits; template -using Traits CCCL_DEPRECATED = detail::Traits; +using Traits + CCCL_DEPRECATED_BECAUSE("Use cuda::std::numeric_limits and cuda::is_floating_point etc. instead") = detail::Traits; namespace detail { @@ -1139,6 +1142,7 @@ template using unsigned_bits_t = typename unsigned_bits::type; } // namespace detail +// TODO(bgruber): do we actually need to expose Twiddle publicly? //! Bit twiddling utilities template struct Twiddle;