From f73b1fc580723e5d22cc3f6c2a4acc15b6086e5e Mon Sep 17 00:00:00 2001 From: Bernhard Manfred Gruber Date: Tue, 21 Jan 2025 14:32:01 +0100 Subject: [PATCH] Update libcudacxx/include/cuda/__type_traits/is_floating_point.h Co-authored-by: Michael Schellenberger Costa --- libcudacxx/include/cuda/__type_traits/is_floating_point.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libcudacxx/include/cuda/__type_traits/is_floating_point.h b/libcudacxx/include/cuda/__type_traits/is_floating_point.h index 5f0b2c86499..a37a5dd1f29 100644 --- a/libcudacxx/include/cuda/__type_traits/is_floating_point.h +++ b/libcudacxx/include/cuda/__type_traits/is_floating_point.h @@ -35,7 +35,8 @@ struct _CCCL_TYPE_VISIBILITY_DEFAULT is_floating_point #if !defined(_CCCL_NO_VARIABLE_TEMPLATES) template -_CCCL_INLINE_VAR constexpr bool is_floating_point_v = is_floating_point<_Tp>::value; +_CCCL_INLINE_VAR constexpr bool is_floating_point_v = _CUDA_VSTD::is_floating_point_v<_CUDA_VSTD::remove_cv_t<_Tp>> + || _CUDA_VSTD::__is_extended_floating_point_v<_CUDA_VSTD::remove_cv_t<_Tp>>; #endif // !_CCCL_NO_VARIABLE_TEMPLATES _LIBCUDACXX_END_NAMESPACE_CUDA