On Thu, Nov 10, 2005 at 04:11:03PM +0000, Angus Leeming wrote:
> Jean-Marc Lasgouttes wrote:
> > I have a different idea right now: since ParagraphList is a vector,
> > can't we just say that
> >   pit = &par - &pars_[0];
> > ?
> 
> I'm not saying that would be a bad thing to do, but would note that
> the fact that ParagraphList is a std::vector is meant to be an
> implementation detail...

Not so that you'd notice if you browse the code base...

Anyway this is a great idea at this point. The cost is a small constant
instead of linear with doc size.

Tested and works. OK to go in?

- Martin (beating his forehead, 'of course!')

Attachment: pgpYCLEc9waa6.pgp
Description: PGP signature

Reply via email to