Fabien Costantini wrote: >> Albrecht Schlosser wrote: >>> ... >>> What happens? Note that img points to an Fl_Shared_Image object. >>> The compiler can't detect this, can it? Will the Fl_Shared_Image >>> be destroyed? >> Yes, it will, since the destructor of a class is always virtual. > Always virtual ?
Yes, always. Otherwise inheritance would not work correctly (all destructors are called up through the root class...) -- ______________________________________________________________________ Michael Sweet, Easy Software Products mike at easysw dot com _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
