Update of /cvsroot/boost/boost/boost/numeric/ublas
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv12760
Modified Files:
matrix.hpp vector.hpp
Log Message:
- 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
Index: matrix.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/numeric/ublas/matrix.hpp,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -d -r1.74 -r1.75
--- matrix.hpp 16 Mar 2007 22:39:16 -0000 1.74
+++ matrix.hpp 7 Apr 2007 21:12:25 -0000 1.75
@@ -2328,7 +2328,7 @@
};
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 @@
};
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
Index: vector.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/numeric/ublas/vector.hpp,v
retrieving revision 1.76
retrieving revision 1.77
diff -u -d -r1.76 -r1.77
--- vector.hpp 16 Mar 2007 22:39:17 -0000 1.76
+++ vector.hpp 7 Apr 2007 21:12:26 -0000 1.77
@@ -759,7 +759,7 @@
};
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 @@
};
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
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs