diff --git a/Eigen/src/Core/Matrix.h b/Eigen/src/Core/Matrix.h index 53ab27412..f5d0de74b 100644 --- a/Eigen/src/Core/Matrix.h +++ b/Eigen/src/Core/Matrix.h @@ -187,6 +187,12 @@ class Matrix return Base::operator=(other); } + template + EIGEN_STRONG_INLINE Matrix& operator=(const ReturnByValue& func) + { + return Base::operator=(func); + } + using Base::operator +=; using Base::operator -=; using Base::operator *=;