From 7deace95edcaae0d6d5ea0e68ea75501c309b3fc Mon Sep 17 00:00:00 2001 From: Gunter Winkler Date: Fri, 16 Mar 2007 21:26:39 +0000 Subject: [PATCH] - fixed unit_vector::find() [SVN r37206] --- include/boost/numeric/ublas/vector.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/numeric/ublas/vector.hpp b/include/boost/numeric/ublas/vector.hpp index d77f97dc..b47fe138 100644 --- a/include/boost/numeric/ublas/vector.hpp +++ b/include/boost/numeric/ublas/vector.hpp @@ -867,7 +867,7 @@ namespace boost { namespace numeric { namespace ublas { // Element lookup BOOST_UBLAS_INLINE const_iterator find (size_type i) const { - return const_iterator (*this, i == index_); + return const_iterator (*this, i <= index_); } class const_iterator: