diff options
author | Niels Dekker <N.Dekker@lumc.nl> | 2020-07-11 12:50:46 +0200 |
---|---|---|
committer | Niels Dekker <N.Dekker@lumc.nl> | 2020-07-11 13:32:28 +0200 |
commit | 4ab32e2de2511746e2108563a43cbbeb1922fbf2 (patch) | |
tree | a06f6a180f538ce9dfd79138bd7c2efbf5c1e65b /test/stddeque_overload.cpp | |
parent | dcf7655b3d469a399c1182f350c9009e13ad8654 (diff) |
Allow implicit conversion from bfloat16 to float and double
Conversion from `bfloat16` to `float` and `double` is lossless. It seems natural to allow the conversion to be implicit, as the C++ language also support implicit conversion from a smaller to a larger floating point type.
Intel's OneDLL bfloat16 implementation also has an implicit `operator float()`: https://github.com/oneapi-src/oneDNN/blob/v1.5/src/common/bfloat16.hpp
Diffstat (limited to 'test/stddeque_overload.cpp')
0 files changed, 0 insertions, 0 deletions