2
0
mirror of https://github.com/boostorg/ublas.git synced 2026-02-26 17:12:10 +00:00

FIX type i_ instead of j_ in ref()

svn path=/trunk/boost/boost/numeric/ublas/; revision=31372
This commit is contained in:
Michael Stevens
2005-10-18 13:16:04 +00:00
parent dbe66751ab
commit 73886d5cdc

View File

@@ -143,7 +143,7 @@ namespace boost { namespace numeric { namespace ublas {
// Conversion to reference - may be invalidated
BOOST_UBLAS_INLINE
value_type& ref () const {
const pointer p = (*this) ().find_element (i_, i_);
const pointer p = (*this) ().find_element (i_, j_);
if (!p)
return (*this) ().insert_element (i_, j_, value_type/*zero*/());
else