Avoid calling resizeLike, if EIGEN_NO_AUTOMATIC_RESIZING is defined

This commit is contained in:
Jens Mueller 2010-07-06 10:11:18 +02:00
parent 5322b670c8
commit d849bc4401

View File

@ -432,8 +432,9 @@ class DenseStorageBase : public ei_dense_xpr_base<Derived>::type
ei_assert((this->size()==0 || (IsVectorAtCompileTime ? (this->size() == other.size()) ei_assert((this->size()==0 || (IsVectorAtCompileTime ? (this->size() == other.size())
: (rows() == other.rows() && cols() == other.cols()))) : (rows() == other.rows() && cols() == other.cols())))
&& "Size mismatch. Automatic resizing is disabled because EIGEN_NO_AUTOMATIC_RESIZING is defined"); && "Size mismatch. Automatic resizing is disabled because EIGEN_NO_AUTOMATIC_RESIZING is defined");
#endif #else
resizeLike(other); resizeLike(other);
#endif
} }
/** /**