diff --git a/Eigen/src/Core/arch/Default/BFloat16.h b/Eigen/src/Core/arch/Default/BFloat16.h index 3ea725d9b..f9c6e76a9 100644 --- a/Eigen/src/Core/arch/Default/BFloat16.h +++ b/Eigen/src/Core/arch/Default/BFloat16.h @@ -34,9 +34,8 @@ namespace Eigen { struct bfloat16; -// explicit conversion operators are no available before C++11 so we first cast -// bfloat16 to RealScalar rather than to std::complex directly -#if !EIGEN_HAS_CXX11 +// Since we allow implicit conversion of bfloat16 to float and double, we +// need to make the cast to complex a bit more explicit namespace internal { template struct cast_impl > { @@ -46,7 +45,6 @@ struct cast_impl > { } }; } // namespace internal -#endif // EIGEN_HAS_CXX11 namespace bfloat16_impl {