|
Ublas : |
From: Francisco J. González (fgonzalez_at_[hidden])
Date: 2006-01-12 12:42:10
Hi,
I'm using Boost beta 1.33.1 with Microsoft Visual C++ 2003. I'm having problems with the coordinate_matrix: the following code
#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