diff options
author | 2008-12-18 03:47:49 +0000 | |
---|---|---|
committer | 2008-12-18 03:47:49 +0000 | |
commit | 15d72d3f9aef0216d3b1074bf962bdc33776e877 (patch) | |
tree | fd3e2714f24603bd921de7f413fac14c35b2db08 /Eigen/src | |
parent | 9084e2a216aed3eb8a203ef44deceaa502b45b20 (diff) |
somehow we had forgotten this very important static assertion...
Diffstat (limited to 'Eigen/src')
-rw-r--r-- | Eigen/src/Core/CwiseBinaryOp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Eigen/src/Core/CwiseBinaryOp.h b/Eigen/src/Core/CwiseBinaryOp.h index cb72e34d5..b951ee0f3 100644 --- a/Eigen/src/Core/CwiseBinaryOp.h +++ b/Eigen/src/Core/CwiseBinaryOp.h @@ -101,6 +101,7 @@ class CwiseBinaryOp : ei_no_assignment_operator, // 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()); } |