Andre Poenitz wrote: > On Tue, Feb 18, 2003 at 04:17:32PM +0000, Angus Leeming wrote: >> I got really nervous about all this over the summer and Lars' proposal >> was the only safe way I could think of. > > Ok. So should we just move the boost::weak_ptr<BufferView> to InsetBase? > > [I am sure I will hate myself for this at some point of time...]
Here's my take on it. If we cache BufferView we should use a weak_ptr for now. The graphics code is inherently unsafe without it. If, at some time unknown, the graphics code can be made safe, then I suspect the safety argument will no longer hold true. Having said that, a threaded LyX will have all sorts of other boost cruft, or Lars isn't Lars... -- Angus