From 3cf0182249fefc625e23158d7dab1213191c5feb Mon Sep 17 00:00:00 2001 From: Gunter Winkler Date: Mon, 3 Nov 2008 22:53:55 +0000 Subject: [PATCH] see #2423. removed the check because it makes absolutely no sense TODO: check the strange "optimization" of lower bound. --- include/boost/numeric/ublas/storage_sparse.hpp | 1 - 1 file changed, 1 deletion(-) diff --git a/include/boost/numeric/ublas/storage_sparse.hpp b/include/boost/numeric/ublas/storage_sparse.hpp index 603fa531..72584b8b 100644 --- a/include/boost/numeric/ublas/storage_sparse.hpp +++ b/include/boost/numeric/ublas/storage_sparse.hpp @@ -390,7 +390,6 @@ namespace boost { namespace numeric { namespace ublas { if (it != end () && it->first == p.first) return std::make_pair (it, false); difference_type n = it - begin (); - BOOST_UBLAS_CHECK (size () == 0 || size () == size_type (n), external_logic ()); resize (size () + 1); it = begin () + n; // allow for invalidation std::copy_backward (it, end () - 1, end ());