From b4b214d87c643c14c355f8adeb56f60e32e30aa2 Mon Sep 17 00:00:00 2001 From: Michael Stevens Date: Thu, 2 Sep 2004 12:51:44 +0000 Subject: [PATCH] conversion to sparse_vector_element not allowed [SVN r24868] --- include/boost/numeric/ublas/vector_sparse.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/boost/numeric/ublas/vector_sparse.hpp b/include/boost/numeric/ublas/vector_sparse.hpp index 25e99858..7719d686 100644 --- a/include/boost/numeric/ublas/vector_sparse.hpp +++ b/include/boost/numeric/ublas/vector_sparse.hpp @@ -38,12 +38,14 @@ namespace boost { namespace numeric { namespace ublas { typedef value_type *pointer; typedef value_type &reference; - // Construction and destruction + /* FIXME Why was this function provided to generate a runtime error? + * without the incorrect conversion is a compiletime error! BOOST_UBLAS_INLINE sparse_vector_element (const value_type &d): container_reference (), i_ (), d_ (d), dirty_ (false) { external_logic ().raise (); - } + }*/ + // Construction and destruction sparse_vector_element (vector_type &v, size_type i): container_reference (v), i_ (i), d_ (), dirty_ (false) { pointer it = (*this) ().find_element (i_);