diff options
author | 2016-03-12 00:15:58 -0800 | |
---|---|---|
committer | 2016-03-12 00:15:58 -0800 | |
commit | e29c9676b1a7f0e82af0c4c4c63cfe16813340ad (patch) | |
tree | cb0e4f2f1542cd29e8b6f83f9b070648d11c95a7 | |
parent | eecd91486470bdebe7238d9f536741e94fefa4b3 (diff) |
Don't mark the cast operator as explicit, since this is a c++11 feature that's not supported by older compilers.
-rw-r--r-- | Eigen/src/Core/arch/CUDA/Half.h | 4 |
1 files 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); } |