Boost logo

Boost :

From: rogeeff (rogeeff_at_[hidden])
Date: 2001-12-14 02:04:39


--- In boost_at_y..., "David Abrahams" <david.abrahams_at_r...> wrote:
>
> ----- Original Message -----
> From: "rogeeff" <rogeeff_at_m...>
> To: <boost_at_y...>
> Sent: Friday, December 14, 2001 12:46 AM
> Subject: [boost] iterator_adaptor and statefull policies.
>
>
> > Hi,
> >
> > I have a question about iterator_adaptor. The iterator_adaptor
seems
> > to assume that Policies are stateless. For example, it never copy
> > them in copy constructor and iterator.
>
> You must be looking at different code than I am. The version I have
on my
> disk seems to copy policies (BTW, there is no user-defined copy-
constructor,
> so the default one takes effect).
>
> > Why it was designed that way?
>
> It wasn't! ;-)
>

Sorry for bad example, but still: operator== does not check that
Policies are equal.

> Regards,
> Dave

Gennadiy.


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