Boost logo

Boost :

From: Detlef Vollmann (dv_at_[hidden])
Date: 1999-08-17 05:12:48


Detlef Vollmann wrote:
>
> Hmmm, just an idea....
> If you define
> template <typename container>
> class live : public container
> {public: typedef live_iterator iterator;
> ... };
>
> and you have a ctor for live_iterator that takes the
> original iterator, then this ctor could correct the
> iterator returned from the container.
On second thought, this won't work. I still believe that your
iterator needs a reference to container.end(), and you can't get
this from the original iterator.

-- 
Detlef Vollmann
vollmann engineering gmbh           Tel: +41-41-4120911
P.O. Box 5106                       Fax: +41-41-4120912
CH-6000 Luzern 5 / Switzerland      eMail: dv_at_[hidden]

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