diff --git a/include/boost/numeric/ublas/matrix.hpp b/include/boost/numeric/ublas/matrix.hpp index ddc4fe50..d2fb2b4d 100644 --- a/include/boost/numeric/ublas/matrix.hpp +++ b/include/boost/numeric/ublas/matrix.hpp @@ -3155,8 +3155,6 @@ namespace boost { namespace numeric { namespace ublas { assign_temporary (temporary); } else { - // only necessary for non POD to maintain default initialised invariant - std::fill (data_ + size1_*size2_, data_ + size1+size2, value_type ()); size1_ = size1; size2_ = size2; } diff --git a/include/boost/numeric/ublas/vector.hpp b/include/boost/numeric/ublas/vector.hpp index c5a45458..cf980714 100644 --- a/include/boost/numeric/ublas/vector.hpp +++ b/include/boost/numeric/ublas/vector.hpp @@ -1218,8 +1218,6 @@ namespace boost { namespace numeric { namespace ublas { void resize (size_type size, bool preserve = true) { if (size > N) bad_size ().raise (); - // only necessary for non POD to maintain default initialised invariant - std::fill (data_ + size_, data_ + size, value_type ()); size_ = size; }