On Wednesday 14 August 2002 11:09 am, Andre Poenitz wrote:
> On Wed, Aug 14, 2002 at 11:57:55AM +0200, Lars Gullik Bjønnes wrote:
> > anyhow imho since lyxfunc is stored as a shared_ptr in LyXView it
> > should never be stored anywere as a reference. it should rather be
> > stored as a shared_ptr or a weak_ptr.
>
> I think the shared_ptr is just a device to "pimpl" the thing. There
> should always be a lyxfunc present, so using references does not look
> unreasonable.

Indeed. Especially since its "scoped_ptr<LyXFunc> const lyxfunc_" and so is 
guaranteed to exist as long as LyXView does.

Anyway, André found the bug, which was incorrect order of initialisation. 
Thanks, André, and apologies for the inconvenience.

Angus

Reply via email to