Boost logo

Boost :

From: Michael Stevens (Michael.Stevens_at_[hidden])
Date: 2004-09-09 01:12:39


Neal,
> > "Neal D. Becker" <ndbecker2_at_[hidden]> writes:
> Actually, I'm having trouble tracing this.  AFAICT, in vector.hpp
>     // Array based vector class
>     template<class T, class A>
>     class vector:
> ...
private:
>         typedef typename A::const_iterator const_iterator_type;
>         typedef typename A::iterator iterator_type;

You missed out that iterator_type a private (at least in CVS!). Later you will
see some thing like:
        class const_iterator:
            public container_const_reference<vector>,
            public
random_access_iterator_base<dense_random_access_iterator_tag,
                                               const_iterator, value_type> {
        public:

Which does the work. The documentation is correct. Here const_iterator is a
uBLAS Indexed Random Access Iterator concept which SHOULD (indirectly) supply
operator[].

Michael

-- 
___________________________________
Michael Stevens Systems Engineering
34128 Kassel, Germany
Phone/Fax: +49 561 5218038
Navigation Systems, Estimation  and
                 Bayesian Filtering
    http://bayesclasses.sf.net
___________________________________

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