Switched to smart_copy to support non-trivial scalar types

This commit is contained in:
Pavel Holoborodko 2013-08-25 18:03:49 +09:00
parent 1472f4bc61
commit e6462c2ce3

View File

@ -711,7 +711,7 @@ class SparseMatrix
initAssignment(other);
if(other.isCompressed())
{
memcpy(m_outerIndex, other.m_outerIndex, (m_outerSize+1)*sizeof(Index));
internal::smart_copy(other.m_outerIndex, other.m_outerIndex + m_outerSize + 1, m_outerIndex);
m_data = other.m_data;
}
else