2
0
mirror of https://github.com/boostorg/ublas.git synced 2026-02-22 15:52:18 +00:00

FIX reserve error with no preserve (thanks Gunter)

svn path=/trunk/boost/boost/numeric/ublas/; revision=27790
This commit is contained in:
Michael Stevens
2005-03-23 20:31:06 +00:00
parent 531c3f8b31
commit 70cbef6d3c

View File

@@ -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 ();
}