Boost logo

Ublas :

From: martux (martin_eigel_at_[hidden])
Date: 2007-03-06 14:13:19


I tried using a ublas vector as key type in a std::map along the lines of

boost::ublas::vector<double> x(2);
std::map<boost::ublas::vector<double>, int> vm;
vm[x] = 1;

which wont compile (gcc 4.0.3) due to

error: no match
for ‘operator<’ in ‘__x < __y’.

Adding an implementation of

bool operator<(boost::ublas::vector<double> const& A,
boost::ublas::vector<double> const& B) {...}

unfortunately doesnt help. Could anyone please point out what I am missing?

View this message in context:
Sent from the Boost - uBLAS mailing list archive at