mirror of
https://github.com/boostorg/ublas.git
synced 2026-02-21 15:32:12 +00:00
- changes static initialization of zero_(0) to zero_ = T()
This should be replaces by value_traits<T>::zero and the definition of one_ = 1 should be replaced by value_traits<T>::one [SVN r37393]
This commit is contained in:
@@ -2328,7 +2328,7 @@ namespace boost { namespace numeric { namespace ublas {
|
||||
};
|
||||
|
||||
template<class T, class ALLOC>
|
||||
const typename zero_matrix<T, ALLOC>::value_type zero_matrix<T, ALLOC>::zero_ (0);
|
||||
const typename zero_matrix<T, ALLOC>::value_type zero_matrix<T, ALLOC>::zero_ = T(/*zero*/);
|
||||
|
||||
|
||||
// Identity matrix class
|
||||
@@ -2710,9 +2710,9 @@ namespace boost { namespace numeric { namespace ublas {
|
||||
};
|
||||
|
||||
template<class T, class ALLOC>
|
||||
const typename identity_matrix<T, ALLOC>::value_type identity_matrix<T, ALLOC>::zero_ (0);
|
||||
const typename identity_matrix<T, ALLOC>::value_type identity_matrix<T, ALLOC>::zero_ = T(/*zero*/);
|
||||
template<class T, class ALLOC>
|
||||
const typename identity_matrix<T, ALLOC>::value_type identity_matrix<T, ALLOC>::one_ (1);
|
||||
const typename identity_matrix<T, ALLOC>::value_type identity_matrix<T, ALLOC>::one_ (1); // ISSUE: need 'one'-traits here
|
||||
|
||||
|
||||
// Scalar matrix class
|
||||
|
||||
@@ -759,7 +759,7 @@ namespace boost { namespace numeric { namespace ublas {
|
||||
};
|
||||
|
||||
template<class T, class ALLOC>
|
||||
typename zero_vector<T, ALLOC>::const_value_type zero_vector<T, ALLOC>::zero_ (0);
|
||||
typename zero_vector<T, ALLOC>::const_value_type zero_vector<T, ALLOC>::zero_ = T(/*zero*/);
|
||||
|
||||
|
||||
// Unit vector class
|
||||
@@ -971,9 +971,9 @@ namespace boost { namespace numeric { namespace ublas {
|
||||
};
|
||||
|
||||
template<class T, class ALLOC>
|
||||
typename unit_vector<T, ALLOC>::const_value_type unit_vector<T, ALLOC>::zero_ (0);
|
||||
typename unit_vector<T, ALLOC>::const_value_type unit_vector<T, ALLOC>::zero_ = T(/*zero*/);
|
||||
template<class T, class ALLOC>
|
||||
typename unit_vector<T, ALLOC>::const_value_type unit_vector<T, ALLOC>::one_ (1);
|
||||
typename unit_vector<T, ALLOC>::const_value_type unit_vector<T, ALLOC>::one_ (1); // ISSUE: need 'one'-traits here
|
||||
|
||||
|
||||
// Scalar vector class
|
||||
|
||||
Reference in New Issue
Block a user