From 05ccd103e1bfdd5ecc1f605d7c2c6599dc37cd3e Mon Sep 17 00:00:00 2001 From: Gunter Winkler Date: Sat, 7 Apr 2007 21:12:26 +0000 Subject: [PATCH] - changes static initialization of zero_(0) to zero_ = T() This should be replaces by value_traits::zero and the definition of one_ = 1 should be replaced by value_traits::one [SVN r37393] --- include/boost/numeric/ublas/matrix.hpp | 6 +++--- include/boost/numeric/ublas/vector.hpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/boost/numeric/ublas/matrix.hpp b/include/boost/numeric/ublas/matrix.hpp index 306c7a5a..b9b90942 100644 --- a/include/boost/numeric/ublas/matrix.hpp +++ b/include/boost/numeric/ublas/matrix.hpp @@ -2328,7 +2328,7 @@ namespace boost { namespace numeric { namespace ublas { }; template - const typename zero_matrix::value_type zero_matrix::zero_ (0); + const typename zero_matrix::value_type zero_matrix::zero_ = T(/*zero*/); // Identity matrix class @@ -2710,9 +2710,9 @@ namespace boost { namespace numeric { namespace ublas { }; template - const typename identity_matrix::value_type identity_matrix::zero_ (0); + const typename identity_matrix::value_type identity_matrix::zero_ = T(/*zero*/); template - const typename identity_matrix::value_type identity_matrix::one_ (1); + const typename identity_matrix::value_type identity_matrix::one_ (1); // ISSUE: need 'one'-traits here // Scalar matrix class diff --git a/include/boost/numeric/ublas/vector.hpp b/include/boost/numeric/ublas/vector.hpp index 072efa8f..d7733c91 100644 --- a/include/boost/numeric/ublas/vector.hpp +++ b/include/boost/numeric/ublas/vector.hpp @@ -759,7 +759,7 @@ namespace boost { namespace numeric { namespace ublas { }; template - typename zero_vector::const_value_type zero_vector::zero_ (0); + typename zero_vector::const_value_type zero_vector::zero_ = T(/*zero*/); // Unit vector class @@ -971,9 +971,9 @@ namespace boost { namespace numeric { namespace ublas { }; template - typename unit_vector::const_value_type unit_vector::zero_ (0); + typename unit_vector::const_value_type unit_vector::zero_ = T(/*zero*/); template - typename unit_vector::const_value_type unit_vector::one_ (1); + typename unit_vector::const_value_type unit_vector::one_ (1); // ISSUE: need 'one'-traits here // Scalar vector class