Boost logo

Boost :

From: Gennaro Prota (gennaro_prota_at_[hidden])
Date: 2002-11-11 11:41:21


Hi,

due to the reasons we all know, the old VC6 lib requires at least two
arguments for std::reverse_iterator (the iterator and the
corresponding value_type) instead of one. In fact the definition is:

template<class _RI,
        class _Ty,
        class _Rt = _Ty&,
        class _Pt = _Ty *,
        class _D = ptrdiff_t>
        class reverse_iterator : public _Ranit<_Ty, _D> {
public:
        typedef reverse_iterator<_RI, _Ty, _Rt, _Pt, _D> _Myt;
        typedef _RI iter_type;
        typedef _Rt reference_type;
        typedef _Pt pointer_type;
        ....

Before trying my own one, does boost have already a workaround for
this? What I need is the classical

 typedef std::reverse_iterator<iterator> reverse_iterator;
 typedef std::reverse_iterator<const_iterator> const_reverse_iterator;

Genny.


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