Don't mark the cast operator as explicit, since this is a c++11 feature that's not supported by older compilers.

This commit is contained in:
Benoit Steiner 2016-03-12 00:15:58 -08:00
parent eecd914864
commit e29c9676b1

View File

@ -69,10 +69,10 @@ struct half : public __half {
EIGEN_DEVICE_FUNC half(const volatile half& h) EIGEN_DEVICE_FUNC half(const volatile half& h)
: __half(internal::raw_uint16_to_half(h.x)) {} : __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); 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); return internal::half_to_float(*this);
} }