Make code compile again for older compilers.

See https://stackoverflow.com/questions/7411515/
This commit is contained in:
Christoph Hertzberg 2018-12-22 13:09:07 +01:00
parent efa4c9c40f
commit 6dd93f7e3b

View File

@ -589,7 +589,7 @@ public:
template <typename ResPacketType, typename AccPacketType> template <typename ResPacketType, typename AccPacketType>
EIGEN_STRONG_INLINE void acc(const AccPacketType& c, const ResPacketType& alpha, ResPacketType& r) const EIGEN_STRONG_INLINE void acc(const AccPacketType& c, const ResPacketType& alpha, ResPacketType& r) const
{ {
const conj_helper<ResPacketType,ResPacketType,ConjLhs,false> cj; conj_helper<ResPacketType,ResPacketType,ConjLhs,false> cj;
r = cj.pmadd(c,alpha,r); r = cj.pmadd(c,alpha,r);
} }
@ -927,7 +927,7 @@ public:
template <typename ResPacketType, typename AccPacketType> template <typename ResPacketType, typename AccPacketType>
EIGEN_STRONG_INLINE void acc(const AccPacketType& c, const ResPacketType& alpha, ResPacketType& r) const EIGEN_STRONG_INLINE void acc(const AccPacketType& c, const ResPacketType& alpha, ResPacketType& r) const
{ {
const conj_helper<ResPacketType,ResPacketType,false,ConjRhs> cj; conj_helper<ResPacketType,ResPacketType,false,ConjRhs> cj;
r = cj.pmadd(alpha,c,r); r = cj.pmadd(alpha,c,r);
} }