avoid 2 redundant calls to resize

This commit is contained in:
Gael Guennebaud 2010-02-15 11:31:36 +01:00
parent dcb395c6f5
commit 016943f870

View File

@ -371,8 +371,7 @@ class DenseStorageBase : public _Base<Derived>
: m_storage(other.derived().rows() * other.derived().cols(), other.derived().rows(), other.derived().cols())
{
_check_template_params();
resize(other.rows(), other.cols());
*this = other;
Base::operator=(other.derived());
}
/** \name Map