|
Boost Users : |
Subject: Re: [Boost-users] indirect_iterator, symmetric_matrix and ptr_vector
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2009-06-01 09:11:58
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<double, lower> matrixofdoubles;
>
> boost::ptr_vector<matrixofdoubles> lst;
> boost::make_indirect_iterator(lst.begin()); // testing ind.iter.
pointer containers already use indirect iterators by default.
-Thorsten
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net