mirror of
https://github.com/boostorg/ublas.git
synced 2026-02-19 14:52:17 +00:00
resize did a zero-initiliase instead of a default initialise.
This did not work for value_type's that have no constructor that takes an int [SVN r26794]
This commit is contained in:
@@ -93,7 +93,7 @@ namespace boost { namespace numeric { namespace ublas {
|
||||
BOOST_UBLAS_INLINE
|
||||
void resize (size_type size, bool preserve = true) {
|
||||
if (preserve)
|
||||
data ().resize (size, typename A::value_type (0));
|
||||
data ().resize (size, typename A::value_type());
|
||||
else
|
||||
data ().resize (size);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user