aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/Matrix.h
diff options
context:
space:
mode:
Diffstat (limited to 'Eigen/src/Core/Matrix.h')
-rw-r--r--Eigen/src/Core/Matrix.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Eigen/src/Core/Matrix.h b/Eigen/src/Core/Matrix.h
index d16cae031..893b765ef 100644
--- a/Eigen/src/Core/Matrix.h
+++ b/Eigen/src/Core/Matrix.h
@@ -25,6 +25,8 @@
#ifndef EIGEN_MATRIX_H
#define EIGEN_MATRIX_H
+struct ei_select_matrix_constructor_doing_absolutely_nothing {};
+
/** \class Matrix
*
* \brief The matrix class, also used for vectors and row-vectors
@@ -131,6 +133,8 @@ class Matrix
protected:
ei_matrix_storage<Scalar, MaxSizeAtCompileTime, RowsAtCompileTime, ColsAtCompileTime, Options> m_storage;
+ Matrix(ei_select_matrix_constructor_doing_absolutely_nothing) // this ctor does not even do an assertion
+ : m_storage(ei_select_matrix_storage_constructor_doing_absolutely_nothing) {}
public:
enum { NeedsToAlign = (Options&AutoAlign) == AutoAlign