From e6462c2ce3e2d871892bae13f795d56afc7ec109 Mon Sep 17 00:00:00 2001 From: Pavel Holoborodko Date: Sun, 25 Aug 2013 18:03:49 +0900 Subject: [PATCH] Switched to smart_copy to support non-trivial scalar types --- Eigen/src/SparseCore/SparseMatrix.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 970c6be71..4dad50562 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -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