From d759362a36456bbd85e236fd3a7b1bfbc065df13 Mon Sep 17 00:00:00 2001 From: Toon Knapen Date: Fri, 21 Jan 2005 19:09:44 +0000 Subject: [PATCH] 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] --- include/boost/numeric/ublas/vector.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/numeric/ublas/vector.hpp b/include/boost/numeric/ublas/vector.hpp index 6f54f709..5d10671c 100644 --- a/include/boost/numeric/ublas/vector.hpp +++ b/include/boost/numeric/ublas/vector.hpp @@ -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); }