From ec5f054829324b5849830aee4ef8fbc1e28d7c6c Mon Sep 17 00:00:00 2001 From: Michael Stevens Date: Sat, 14 Aug 2004 20:01:34 +0000 Subject: [PATCH] Workaround std::complex sparse proxy problem with operator== --- include/boost/numeric/ublas/traits.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/numeric/ublas/traits.hpp b/include/boost/numeric/ublas/traits.hpp index f0d9566a..32f809b9 100644 --- a/include/boost/numeric/ublas/traits.hpp +++ b/include/boost/numeric/ublas/traits.hpp @@ -1477,7 +1477,7 @@ namespace boost { namespace numeric { namespace ublas { #if BOOST_UBLAS_TYPE_CHECK I cit (it); while (cit != it_end) { - BOOST_UBLAS_CHECK (*cit == BOOST_UBLAS_TYPENAME I::value_type (), internal_logic ()); + BOOST_UBLAS_CHECK (BOOST_UBLAS_TYPENAME I::value_type (*cit) == BOOST_UBLAS_TYPENAME I::value_type (), internal_logic ()); ++ cit; } #endif