- All conversions among floating point types should be allowed.

Change-Id: I6223bece51f5b2a535ab3369c5c4380f18acc74d


[ROCm/clr commit: 6b9c1744e9]
Этот коммит содержится в:
Michael LIAO
2021-01-06 00:13:11 -05:00
коммит произвёл Michael Hong Bin Liao
родитель 2df32ebc65
Коммит 9211198dcd
+1 -3
Просмотреть файл
@@ -220,9 +220,7 @@ THE SOFTWARE.
#if !defined(__HIP_NO_HALF_CONVERSIONS__)
template<
typename T,
Enable_if_t<
std::is_floating_point<T>{} &&
!std::is_same<T, double>{}>* = nullptr>
Enable_if_t<std::is_floating_point<T>{}>* = nullptr>
__host__ __device__
operator T() const { return data; }
#endif