#include <boost/numeric/ublas/matrix_sparse.hpp>
int main ()
{
boost::numeric::ublas::coordinate_matrix<double> m
(3, 3, 3*3);
m(0,0) = 1.0;
}
generates an error in line #3 (see the attached file with the complete
build log):
c:\Archivos de programa\Microsoft Visual Studio .NET
2003\Vc7\include\algorithm(368) :
error C2664:
'void
std::swap<boost::numeric::ublas::indexed_iterator<C,IC>::reference>(_Ty
&,_Ty &)' :
cannot convert parameter 1
from
'boost::numeric::ublas::indexed_iterator<C,IC>::reference'
to
'boost::numeric::ublas::indexed_iterator<C,IC>::reference &'
A
reference that is not to 'const' cannot be bound to a non-lvalue
Do anybody knows the cause/workarround?
Thanks
Fran J. González