From d19f3426eafbc742e047528681f07583e17255b7 Mon Sep 17 00:00:00 2001 From: Bernhard Manfred Gruber Date: Thu, 30 Jan 2025 21:26:05 +0100 Subject: [PATCH] Deprecate thrust macros from type_deduction.h (#3501) (#3511) --- thrust/thrust/detail/type_deduction.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/thrust/thrust/detail/type_deduction.h b/thrust/thrust/detail/type_deduction.h index a1d41de9676..717edc366ee 100644 --- a/thrust/thrust/detail/type_deduction.h +++ b/thrust/thrust/detail/type_deduction.h @@ -30,16 +30,18 @@ /// \def THRUST_MVCAP(x) /// \brief Capture `x` into a lambda by moving. -/// +/// deprecated [Since 2.8] #define THRUST_MVCAP(x) x = ::std::move(x) /// \def THRUST_RETOF(invocable, ...) /// \brief Expands to the type returned by invoking an instance of the invocable /// type \a invocable with parameters of type \c __VA_ARGS__. Must /// be called with 1 or fewer parameters to the invocable. -/// -#define THRUST_RETOF(...) THRUST_PP_DISPATCH(THRUST_RETOF, __VA_ARGS__) -#define THRUST_RETOF1(C) decltype(::std::declval()()) +/// deprecated [Since 2.8] +#define THRUST_RETOF(...) THRUST_PP_DISPATCH(THRUST_RETOF, __VA_ARGS__) +/// deprecated [Since 2.8] +#define THRUST_RETOF1(C) decltype(::std::declval()()) +/// deprecated [Since 2.8] #define THRUST_RETOF2(C, V) decltype(::std::declval()(::std::declval())) /// \def THRUST_RETURNS(...) @@ -88,6 +90,7 @@ } \ /**/ #else +/// deprecated [Since 2.8] # define THRUST_DECLTYPE_RETURNS_WITH_SFINAE_CONDITION(condition, ...) \ noexcept(noexcept(__VA_ARGS__))->typename std::enable_if::type \ { \