On Thu, Nov 06, 2003 at 10:48:12PM +0100, Alfredo Braunstein wrote:
> A bit hacky, though.
> 
> Would be more straightforward if PosIterator had a vector instead of a
> stack as internal container, so I could have a InsetOld *
> PosIterator::inset() method.
> 
> Comments?

So just use a vector and write a comment "This is conceptually a stack,
but sometimes we need random access to its elements, so we use a
vector".

We do that in other places already.

Andre'

-- 
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one.     (T. Jefferson or B. Franklin or both...)

Reply via email to