Fix possible conflict with an externally defined "real" type.

This issue was detected by gcc5 only.
This commit is contained in:
Gael Guennebaud 2019-11-14 13:31:26 +01:00
parent e1e9b3f9f6
commit 3d7e2a1f3d

View File

@ -351,10 +351,7 @@ template<typename Packet> EIGEN_DEVICE_FUNC inline Packet preverse(const Packet&
/** \internal \returns \a a with real and imaginary part flipped (for complex type only) */ /** \internal \returns \a a with real and imaginary part flipped (for complex type only) */
template<typename Packet> EIGEN_DEVICE_FUNC inline Packet pcplxflip(const Packet& a) template<typename Packet> EIGEN_DEVICE_FUNC inline Packet pcplxflip(const Packet& a)
{ {
// FIXME: uncomment the following in case we drop the internal imag and real functions. return Packet(a.imag(),a.real());
// using std::imag;
// using std::real;
return Packet(imag(a),real(a));
} }
/************************** /**************************