Index: boost/numeric/ublas/functional.hpp =================================================================== RCS file: /cvsroot/boost/boost/boost/numeric/ublas/functional.hpp,v retrieving revision 1.34 diff -u -p -r1.34 functional.hpp --- boost/numeric/ublas/functional.hpp 2 Oct 2005 12:16:38 -0000 1.34 +++ boost/numeric/ublas/functional.hpp 24 Oct 2005 11:23:30 -0000 @@ -35,6 +35,7 @@ namespace boost { namespace numeric { na #include #include #endif +#include @@ -1390,6 +1391,7 @@ namespace boost { namespace numeric { na size_type element (size_type i, size_type size1, size_type j, size_type size2) { BOOST_UBLAS_CHECK (i < size1, bad_index ()); BOOST_UBLAS_CHECK (j < size2, bad_index ()); + ignore_unused_variable_warning(size1); // Guard against size_type overflow BOOST_UBLAS_CHECK (i <= ((std::numeric_limits::max) () - j) / size2, bad_index ()); return i * size2 + j; Index: boost/numeric/ublas/vector.hpp =================================================================== RCS file: /cvsroot/boost/boost/boost/numeric/ublas/vector.hpp,v retrieving revision 1.68 diff -u -p -r1.68 vector.hpp --- boost/numeric/ublas/vector.hpp 16 Oct 2005 16:05:52 -0000 1.68 +++ boost/numeric/ublas/vector.hpp 24 Oct 2005 11:23:31 -0000 @@ -20,6 +20,7 @@ #include #include #include +#include // Iterators based on ideas of Jeremy Siek @@ -74,10 +75,10 @@ namespace boost { namespace numeric { na vector_assign (*this, ae); } - // Random Access Container + // Random Access Container BOOST_UBLAS_INLINE size_type max_size () const { - return data_.max_size (); + return data_.max_size (); } BOOST_UBLAS_INLINE @@ -337,7 +338,7 @@ namespace boost { namespace numeric { na } BOOST_UBLAS_INLINE const_reference operator [] (difference_type n) const { - return *(it_ + n); + return *(it_ + n); } // Index @@ -438,7 +439,7 @@ namespace boost { namespace numeric { na } BOOST_UBLAS_INLINE reference operator [] (difference_type n) const { - return *(it_ + n); + return *(it_ + n); } // Index @@ -720,6 +721,7 @@ namespace boost { namespace numeric { na BOOST_UBLAS_INLINE bool operator == (const const_iterator &it) const { BOOST_UBLAS_CHECK (&(*this) () == &it (), external_logic ()); + ignore_unused_variable_warning(it); return true; } }; @@ -1132,7 +1134,7 @@ namespace boost { namespace numeric { na } BOOST_UBLAS_INLINE const_reference operator [] (difference_type n) const { - return *(*this + n); + return *(*this + n); } // Index @@ -1502,7 +1504,7 @@ namespace boost { namespace numeric { na } BOOST_UBLAS_INLINE const_reference operator [] (difference_type n) const { - return *(it_ + n); + return *(it_ + n); } // Index @@ -1603,7 +1605,7 @@ namespace boost { namespace numeric { na } BOOST_UBLAS_INLINE reference operator [] (difference_type n) const { - return *(it_ + n); + return *(it_ + n); } // Index