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