From 3d7e2a1f3d47ac0eef5980407a8575adf5690ad5 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Thu, 14 Nov 2019 13:31:26 +0100 Subject: [PATCH] Fix possible conflict with an externally defined "real" type. This issue was detected by gcc5 only. --- Eigen/src/Core/GenericPacketMath.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Eigen/src/Core/GenericPacketMath.h b/Eigen/src/Core/GenericPacketMath.h index 6ef1d113b..e59443779 100644 --- a/Eigen/src/Core/GenericPacketMath.h +++ b/Eigen/src/Core/GenericPacketMath.h @@ -351,10 +351,7 @@ template EIGEN_DEVICE_FUNC inline Packet preverse(const Packet& /** \internal \returns \a a with real and imaginary part flipped (for complex type only) */ template EIGEN_DEVICE_FUNC inline Packet pcplxflip(const Packet& a) { - // FIXME: uncomment the following in case we drop the internal imag and real functions. -// using std::imag; -// using std::real; - return Packet(imag(a),real(a)); + return Packet(a.imag(),a.real()); } /**************************