Fix #1833: compilation issue of "array!=scalar" with c++20

This commit is contained in:
Gael Guennebaud 2020-05-30 23:53:58 +02:00
parent ab615e4114
commit 867a756509

View File

@ -145,7 +145,7 @@ OP(const Scalar& s) const { \
return this->OP(Derived::PlainObject::Constant(rows(), cols(), s)); \ return this->OP(Derived::PlainObject::Constant(rows(), cols(), s)); \
} \ } \
EIGEN_DEVICE_FUNC friend EIGEN_STRONG_INLINE const RCmp ## COMPARATOR ## ReturnType \ EIGEN_DEVICE_FUNC friend EIGEN_STRONG_INLINE const RCmp ## COMPARATOR ## ReturnType \
OP(const Scalar& s, const Derived& d) { \ OP(const Scalar& s, const EIGEN_CURRENT_STORAGE_BASE_CLASS<Derived>& d) { \
return Derived::PlainObject::Constant(d.rows(), d.cols(), s).OP(d); \ return Derived::PlainObject::Constant(d.rows(), d.cols(), s).OP(d); \
} }