mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-18 14:34:17 +08:00
avoid 2 redundant calls to resize
This commit is contained in:
parent
dcb395c6f5
commit
016943f870
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user