overloaded operator delete should call ei_conditinal_aligned_free, not

ei_aligned_free
This commit is contained in:
Benoit Jacob
2009-01-09 21:28:53 +00:00
parent b3d580dec7
commit 265ab86005
3 changed files with 25 additions and 2 deletions

View File

@@ -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