Re: Gnome::Main destructor



On Fri, 2005-04-22 at 20:56 -0600, Phillip Neiswanger wrote:
> Hello,
> 
> I was wondering why the Gnome::Main destructor is not virtual.

It is virtual, because Gnome::Main inherits from Gtk::Main, which has a
virtual destructor. However, Gtk::Main inherits from sigc::trackable,
which does not, so you can delete a Gnome::Main from a Gtk::Main*, but
not from a sigc::trackable*.

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]