On Fri, Nov 20, 2009 at 4:31 PM, James Robinson <[email protected]> wrote:
> What's the benefit of omitting the virtual destructor? > There really shouldn't be any -- if you have any virtual functions at all, you already have a vtbl entry and you are just adding at most one entry to a single vtbl for the class. In the cases where it was safe to not have a virtual destructor (ie, the actual object type is statically known), the compiler should make the destructor call static and possibly inline it anyway. -- John A. Tamplin Software Engineer (GWT), Google -- Chromium Developers mailing list: [email protected] View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-dev
