From 3de40d0999579ae58a499bc82ea6dbe5e448ef48 Mon Sep 17 00:00:00 2001 From: Michael Stevens Date: Wed, 17 May 2006 16:21:54 +0000 Subject: [PATCH] uBLAS FIX indexed_terator1/2 pass incorrect difference_type to random_access_iterator_base. Thanks to Vardan for fix --- include/boost/numeric/ublas/detail/iterator.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/boost/numeric/ublas/detail/iterator.hpp b/include/boost/numeric/ublas/detail/iterator.hpp index 8fdbffd3..516d2ada 100644 --- a/include/boost/numeric/ublas/detail/iterator.hpp +++ b/include/boost/numeric/ublas/detail/iterator.hpp @@ -203,7 +203,7 @@ namespace boost { namespace numeric { namespace ublas { * is LessThan Comparable. */ template - // ISSUE the default here seems rather dangerous as it can easlly be (silently) incorrect + // ISSUE the default for D seems rather dangerous as it can easily be (silently) incorrect struct random_access_iterator_base: public std::iterator { typedef I derived_iterator_type; @@ -878,7 +878,7 @@ namespace boost { namespace numeric { namespace ublas { public random_access_iterator_base, typename C::value_type, - typename C::reference> { + typename C::difference_type> { public: typedef C container_type; typedef IC iterator_category; @@ -1024,7 +1024,7 @@ namespace boost { namespace numeric { namespace ublas { public random_access_iterator_base, typename C::value_type, - typename C::const_reference> { + typename C::difference_type> { public: typedef C container_type; typedef IC iterator_category; @@ -1169,7 +1169,7 @@ namespace boost { namespace numeric { namespace ublas { public random_access_iterator_base, typename C::value_type, - typename C::reference> { + typename C::difference_type> { public: typedef C container_type; typedef IC iterator_category; @@ -1312,7 +1312,7 @@ namespace boost { namespace numeric { namespace ublas { public random_access_iterator_base, typename C::value_type, - typename C::const_reference> { + typename C::difference_type> { public: typedef C container_type; typedef IC iterator_category;