Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2002-11-11 12:12:18


Gennaro Prota <gennaro_prota_at_[hidden]> writes:

> 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;

We have one in the iterator adaptors library.

-- 
                       David Abrahams
   dave_at_[hidden] * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution

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