2
0
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:
Toon Knapen
2005-01-21 19:09:44 +00:00
parent 345fedb846
commit d759362a36

View File

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