From 073cdabd3c6cd6f4be1adc7d5fdb0d1379282927 Mon Sep 17 00:00:00 2001 From: Michael Stevens Date: Fri, 17 Sep 2004 16:05:50 +0000 Subject: [PATCH] Index operator for iterators not yet fixed ignore unused variables [SVN r25177] --- include/boost/numeric/ublas/concepts.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/boost/numeric/ublas/concepts.hpp b/include/boost/numeric/ublas/concepts.hpp index cdb1f5f7..ea61fb74 100644 --- a/include/boost/numeric/ublas/concepts.hpp +++ b/include/boost/numeric/ublas/concepts.hpp @@ -168,8 +168,12 @@ namespace boost { namespace numeric { namespace ublas { // Difference n = it1 - it2; // Element operator +#ifdef BOOST_UBLAS_ITERATOR_IS_INDEXABLE t = it [n]; +#endif t = *(it + n); + ignore_unused_variable_warning (itp); + ignore_unused_variable_warning (itm); ignore_unused_variable_warning (t); } }; @@ -187,7 +191,9 @@ namespace boost { namespace numeric { namespace ublas { difference_type n (0); value_type t = value_type (); // Element assignment +#ifdef BOOST_UBLAS_ITERATOR_IS_INDEXABLE it [n] = t; +#endif *(it + n) = t; } };