indirect_iterator,symmetric_matrix and ptr_vector

Following test fails to compile. Errors start with the first call to
make_indirect_iterator. On the first glace on the error output it looks that
indirect_iterators cannot be used together with ptr_vector and matrix. Is that
correct? If I need to calculate the sum of all matrices in a vector - what is
the right way to do it?
void test()
{
typedef symmetric_matrix

Archie14 skrev:
Following test fails to compile. Errors start with the first call to make_indirect_iterator. On the first glace on the error output it looks that indirect_iterators cannot be used together with ptr_vector and matrix. Is that correct? If I need to calculate the sum of all matrices in a vector - what is the right way to do it?
void test() { typedef symmetric_matrix
matrixofdoubles; boost::ptr_vector<matrixofdoubles> lst; boost::make_indirect_iterator(lst.begin()); // testing ind.iter.
pointer containers already use indirect iterators by default. -Thorsten
participants (2)
-
Archie14
-
Thorsten Ottosen