From 70cbef6d3cf58c2aa76bafef522098367d4c554d Mon Sep 17 00:00:00 2001 From: Michael Stevens Date: Wed, 23 Mar 2005 20:31:06 +0000 Subject: [PATCH] FIX reserve error with no preserve (thanks Gunter) svn path=/trunk/boost/boost/numeric/ublas/; revision=27790 --- include/boost/numeric/ublas/matrix_sparse.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/boost/numeric/ublas/matrix_sparse.hpp b/include/boost/numeric/ublas/matrix_sparse.hpp index 9c93ed54..e387820a 100644 --- a/include/boost/numeric/ublas/matrix_sparse.hpp +++ b/include/boost/numeric/ublas/matrix_sparse.hpp @@ -2649,6 +2649,7 @@ namespace boost { namespace numeric { namespace ublas { value_data_.resize (capacity_); filled1_ = 1; filled2_ = 0; + index1_data_ [filled1_ - 1] = k_based (filled2_); } storage_invariants (); }