mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-03-07 18:27:40 +08:00
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:
parent
eecd914864
commit
e29c9676b1
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user