1 Jun
2009
1 Jun
'09
1:11 p.m.
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