From e29c9676b1a7f0e82af0c4c4c63cfe16813340ad Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Sat, 12 Mar 2016 00:15:58 -0800 Subject: Don't mark the cast operator as explicit, since this is a c++11 feature that's not supported by older compilers. --- Eigen/src/Core/arch/CUDA/Half.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Eigen/src/Core/arch/CUDA/Half.h b/Eigen/src/Core/arch/CUDA/Half.h index 4e5d9ad68..5ce2be165 100644 --- a/Eigen/src/Core/arch/CUDA/Half.h +++ b/Eigen/src/Core/arch/CUDA/Half.h @@ -69,10 +69,10 @@ struct half : public __half { EIGEN_DEVICE_FUNC half(const volatile half& h) : __half(internal::raw_uint16_to_half(h.x)) {} - EIGEN_DEVICE_FUNC explicit operator float() const { + EIGEN_DEVICE_FUNC operator float() const { return internal::half_to_float(*this); } - EIGEN_DEVICE_FUNC explicit operator double() const { + EIGEN_DEVICE_FUNC operator double() const { return internal::half_to_float(*this); } -- cgit v1.2.3