Re: Using scoped_ptr

2002-07-22 Thread John Levon
On Mon, Jul 22, 2002 at 10:21:39PM +0200, Jean-Marc Lasgouttes wrote: > + > boost::scoped_ptr submenuptr; A subtle thing I found out a few weeks ago. You need to have an out of line dtor for the object that has a scoped_ptr inside it. e.g. XMiniBuffer needs an outofline dtor because it contains

Using scoped_ptr

2002-07-22 Thread Jean-Marc Lasgouttes
Can somebody tell me how to use scoped_ptr? If I do the following changes: Index: src/MenuBackend.h === RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/MenuBackend.h,v retrieving revision 1.19 diff -u -r1.19 MenuBackend.h --- src/Men