Boost logo

Boost :

From: Jens Maurer (Jens.Maurer_at_[hidden])
Date: 2004-01-05 08:09:41


Beman Dawes wrote:
> As far as the Boost regression tests go, there hasn't be a lot of
> progress with GCC. The same Boost tests have been failing for the last
> four or five GCC releases, regardless of operating system.

I've committed these missing "typename" to the main branch
(found by gcc 3.4).

Joerg Walter, Mathias Koch (the authors), please merge to
the release branch if you're happy with the changes.

Jens Maurer

Index: matrix.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/numeric/ublas/matrix.hpp,v
retrieving revision 1.17
diff -u -r1.17 matrix.hpp
--- matrix.hpp 28 Nov 2003 07:58:56 -0000 1.17
+++ matrix.hpp 5 Jan 2004 13:09:13 -0000
@@ -2401,10 +2401,10 @@

      template<class T>
      typename identity_matrix<T>::value_type identity_matrix<T>::zero_ =
- identity_matrix<T>::value_type ();
+ typename identity_matrix<T>::value_type ();
      template<class T>
      typename identity_matrix<T>::value_type identity_matrix<T>::one_ =
- identity_matrix<T>::value_type (1);
+ typename identity_matrix<T>::value_type (1);

      // Zero matrix class
      template<class T>
@@ -2861,7 +2861,7 @@

      template<class T>
      typename zero_matrix<T>::value_type zero_matrix<T>::zero_ =
- zero_matrix<T>::value_type ();
+ typename zero_matrix<T>::value_type ();

      // Scalar matrix class
      template<class T>
Index: vector.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/numeric/ublas/vector.hpp,v
retrieving revision 1.16
diff -u -r1.16 vector.hpp
--- vector.hpp 28 Nov 2003 07:58:57 -0000 1.16
+++ vector.hpp 5 Jan 2004 13:09:13 -0000
@@ -1016,7 +1016,7 @@

      template<class T>
      typename zero_vector<T>::value_type zero_vector<T>::zero_ =
- zero_vector<T>::value_type ();
+ typename zero_vector<T>::value_type ();

      // Scalar vector class
      template<class T>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk