Re: Gnome::Main destructor
Murray Cumming <[email protected]> Wed, 04 May 2005 18:07:52 +0200
| Newsgroups | gmane.comp.gnome.gnomemm |
|---|---|
| Message-ID | <[email protected]> |
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 [email protected] www.murrayc.com www.openismus.com