Boost logo

Boost :

From: daniel (daniel.kottow_at_[hidden])
Date: 2003-05-05 14:07:21


hi,
i am trying to use a stl::map of data type ublas::vector

here is a simple example:

#include <map>
#include <boost/numeric/ublas/vector.hpp>

int main(void)
{
   boost::numeric::ublas::vector<int> r(2);
   map<int,IntVector> m;

   m[0] = r;

   return 0;
}

executing the program causes a runtime error on my machine:

Assertion failed in file /usr/include/boost/numeric/ublas/vector.hpp at
line 119:
size_ == v.size_
Aborted

i am using boost_1_29_0 and a gcc 3.2.

anybody knows how to code this differently,
or is there no way to have a map of ublas::vector's ?

greetings, daniel

-- 
Daniel Kottow                             daniel.kottow_at_[hidden]
Security and Testing Technology           http://vision.fhg.de/~daniel
Production Technology Centre              Pascalstr. 8 - 9
Fraunhofer-Institut IPK Berlin            D - 10587 Berlin

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk