2
0
mirror of https://github.com/boostorg/ublas.git synced 2026-02-23 04:02:10 +00:00

RESIZE FIXES

c_vector/matrix drop default construction requirement

svn path=/trunk/boost/boost/numeric/ublas/; revision=26963
This commit is contained in:
Michael Stevens
2005-01-31 14:42:23 +00:00
parent 942e5f34d2
commit ea46a0e5fa
2 changed files with 0 additions and 4 deletions

View File

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

View File

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