Abdelrazak Younes <[EMAIL PROTECTED]> writes: > > The only simple solution I can think of right now is to emit a signal in > > the Inset destructor that we can connect to the CursorSlice. The > > CursorSlice will then invalidate itself. > > Here is what I came up with. In principle this should solve all problems > of invalid cursors. Unfortunately it doesn't compile... somebody has an > idea why? > > Compiling... > MathMacroTemplate.cpp > D:\devel\lyx\trunk\boost\boost/signals/detail/signal_base.hpp(150) : > error C2248: 'boost::noncopyable_::noncopyable::operator =' : cannot > access private member declared in class 'boost::noncopyable_::noncopyable'
You can't copy boost::signals. That means that either you're going to have to define a copy constructor for the Inset holding the signal member or you need to define a NonCopyableSignal wrapper to boost::signal that defines a no-op copy constructor... Angus