summaryrefslogtreecommitdiffhomepage
path: root/eigen/Eigen/src/Core/Ref.h
diff options
context:
space:
mode:
Diffstat (limited to 'eigen/Eigen/src/Core/Ref.h')
-rw-r--r--eigen/Eigen/src/Core/Ref.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/eigen/Eigen/src/Core/Ref.h b/eigen/Eigen/src/Core/Ref.h
index bdf24f5..9c6e3c5 100644
--- a/eigen/Eigen/src/Core/Ref.h
+++ b/eigen/Eigen/src/Core/Ref.h
@@ -95,6 +95,8 @@ protected:
template<typename Expression>
EIGEN_DEVICE_FUNC void construct(Expression& expr)
{
+ EIGEN_STATIC_ASSERT_SAME_MATRIX_SIZE(PlainObjectType,Expression);
+
if(PlainObjectType::RowsAtCompileTime==1)
{
eigen_assert(expr.rows()==1 || expr.cols()==1);