mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
overloaded operator delete should call ei_conditinal_aligned_free, not
ei_aligned_free
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user