On Sat, Feb 18, 2006 at 04:06:59PM +0100, Abdelrazak Younes wrote:
> I'm afraid this would need some changes to "CutAndPaste.C" because there 
> is a problem with the local c-like static variable theCuts. Apparently 
> the limited_stack class does not work well with my version of 
> ParagraphList: it does not keep the contents in memory outside 
> copySelectionHelper (but the sizes of ParagraphList and its paragraphs 
> are kept). I guess the reason why it worked with a vector<Paragraph> is 
> that std::vector keeps the data in a contiguous way. If I am right, 
> whatever strategy we choose for ParagraphList we will need to change th 
> way the Copy selection are stored.

I don't think anybody likes CutAndPaste.C too much/

> And the best solution is of course to create a class with a static member.
> I am sorry to say that "CutAndPaste.C" is a mess.

That's an understatement...

Andre'

Reply via email to