Boost logo

Boost :

From: Yitzhak Sapir (yitzhaks_at_[hidden])
Date: 2002-09-12 09:20:03

> -----Original Message-----
> From: Anthony Williams [mailto:anthwil_at_[hidden]]
> Sent: Thursday, September 12, 2002 3:06 PM
> To: boost_at_[hidden]
> Subject: Re: [boost] Boost iterator adaptors
> David Abrahams writes:
> > It would probably be easy to derive your Policies from the generator
> > adaptor policies.
> I contemplated that, but it requires that the Generator class
> be callable,
> which isn't going to be the case for the upper bound; to
> avoid this, the
> policy class is sufficiently different to warrant being unrelated.
> Do you think it is a sufficiently common case to be worth
> adding to the
> iterator adaptors library alongside generator_iterator?

I think it is, and even suggested something like it. My suggestion involved only one bound side and numeric bounds, though. In fact, I'm not sure two sided bounds are necessary once you have functors. I have some ideas of how to do this, and I think after reading your suggestions, I also think it would be worth supporting both numeric and functor bounds.

Boost list run by bdawes at, gregod at, cpdaniel at, john at