2
0
mirror of https://github.com/boostorg/ublas.git synced 2026-02-21 15:32:12 +00:00

conversion to sparse_vector_element not allowed

svn path=/trunk/boost/boost/numeric/ublas/; revision=24868
This commit is contained in:
Michael Stevens
2004-09-02 12:51:44 +00:00
parent d446c3cd8e
commit 16e66efd4a

View File

@@ -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<vector_type> (), i_ (), d_ (d), dirty_ (false) {
external_logic ().raise ();
}
}*/
// Construction and destruction
sparse_vector_element (vector_type &v, size_type i):
container_reference<vector_type> (v), i_ (i), d_ (), dirty_ (false) {
pointer it = (*this) ().find_element (i_);