diff --git a/projects/hip/include/hip/amd_detail/hip_fp16.h b/projects/hip/include/hip/amd_detail/hip_fp16.h index 65dc36ea02..bd016542e4 100644 --- a/projects/hip/include/hip/amd_detail/hip_fp16.h +++ b/projects/hip/include/hip/amd_detail/hip_fp16.h @@ -220,9 +220,7 @@ THE SOFTWARE. #if !defined(__HIP_NO_HALF_CONVERSIONS__) template< typename T, - Enable_if_t< - std::is_floating_point{} && - !std::is_same{}>* = nullptr> + Enable_if_t{}>* = nullptr> __host__ __device__ operator T() const { return data; } #endif