Angus Leeming <[EMAIL PROTECTED]> writes: | On Wednesday 27 November 2002 3:17 am, John Levon wrote: | > but I can reproduce your math crash | | Which also has a silly cause (although I can't reproduce it.) Bet it's fixed | by this though: | | ControlMath::ControlMath(LyXView & lv, Dialogs & d) | - : ControlDialogBD(lv, d) | + : ControlDialogBD(lv, d), active_(0) | {}
So this would have been a case for the "help_ptr<>" template <class T> class held_ptr : boost::noncopyable { public: held_ptr() : ptr_(0) {} held_ptr(T*t) : ptr_(t) {} T & operator->() { return *ptr; } operator T* { return ptr_; } private: T * ptr_; }; kindo thingie or just a shared_ptr<> of course... -- Lgb