John Peterson wrote: > I don't think so. After sending that email, I wrote a test code and > in fact the destructor does need to be virtual for the destructor to > travel "all the way" up the chain. Try the test code below with and > without virtual commented...
This is relevant. http://blogs.msdn.com/oldnewthing/archive/2004/05/07/127826.aspx Note that you can save yourself immense time with C++ semantics by just thinking about what the equivalent C would look like. If there's no vtable entry for that destructor, then it cannot be called from base. The vast majority of C++ semantics are explainable in this way (rather than endless memorization of "magic"). Jed
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________ Libmesh-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-devel
