|
Ublas : |
From: Thomas Lemaire (thomas.lemaire_at_[hidden])
Date: 2005-09-15 07:53:45
Dear list,
hear again some compilation proglem using boost 1.33 and the last gcc in
debian/sid
gcc (GCC) 4.0.2 20050913 (prerelease) (Debian 4.0.1-7)
This error did not appened with previous gcc4 debian/sid package...
This trivial example does not compile:
vector<double> a;
vector<double> b;
matrix<double> C;
a = prod(C,b);
the error is:
/usr/include/boost/numeric/ublas/matrix_expression.hpp:3560: error:
'(((unsigned
int)boost::numeric::ublas::vector_container<boost::numeric::ublas::vector<double,
boost::numeric::ublas::unbounded_array<double, std::allocator<double> > >
>::complexity) == 0u)' is not a valid template argument for type 'bool'
because it is a non-constant expression
I am not sure to understand what is going on with gcc4, it seems to me that
the template machinery is getting more strict, or broken...
-- thomas