From: Thomas Witt (witt_at_[hidden])
Date: 2002-01-25 08:06:52
On Friday 25 January 2002 13:51, you wrote:
> ----- Original Message -----
> From: "Thomas Witt" <witt_at_[hidden]>
> To: <boost_at_[hidden]>
> Sent: Friday, January 25, 2002 6:12 AM
> Subject: [boost] Iterator adaptor documentation
> > There is something that puzzles me almost every time I look in the
> > adaptor documentation. Policies have to use the undocumented non-const
> > member of iterator_adaptor in order to do their job.
In case you refer to:
base_type base() const;
Return a copy of the base object.
Unless I am missing something terrible obvious this is exactly the problem.
If the policies would use this member they would not work, as base() const is
documented to return a _copy_ of the base iterator and the policies work by
modifying the base iterator.
> > As a result the reader
> > (at least me) is unable to fathom how the default_policies work unless he
> > a look in the header.
> > I think a small comment on this would make the interaction much easier to
> > understand.
> It sounds like your boost release is outdated, or maybe you missed the doc?
I checked the CVS version.
-- Dipl.-Ing. Thomas Witt Institut fuer Verkehrswesen, Eisenbahnbau und -betrieb, Universitaet Hannover voice: +49(0) 511 762 - 4273, fax: +49(0) 511 762-3001 http://www.ive.uni-hannover.de
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk