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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user