somehow we had forgotten this very important static assertion...
diff --git a/Eigen/src/Core/CwiseBinaryOp.h b/Eigen/src/Core/CwiseBinaryOp.h index cb72e34..b951ee0 100644 --- a/Eigen/src/Core/CwiseBinaryOp.h +++ b/Eigen/src/Core/CwiseBinaryOp.h
@@ -101,6 +101,7 @@ // add together a float matrix and a double matrix. EIGEN_STATIC_ASSERT((ei_is_same_type<typename Lhs::Scalar, typename Rhs::Scalar>::ret), you_mixed_different_numeric_types__you_need_to_use_the_cast_method_of_MatrixBase_to_cast_numeric_types_explicitly) + EIGEN_STATIC_ASSERT_SAME_MATRIX_SIZE(Lhs, Rhs) // require the sizes to match ei_assert(lhs.rows() == rhs.rows() && lhs.cols() == rhs.cols()); }