GotW #5 Solution: Overriding Virtual Functions -- Herb Sutter
The solution to GotW #5 is now available:
GotW #5 Solution: Overriding Virtual Functions (updated for C ++11/14)
by Herb Sutter
From the article:
Exactly one of the following can be true for a polymorphic type:
- Either destruction via a pointer to base is allowed, in which case the function has to be
publicand had better bevirtual;- or else it isn’t, in which case the function has to be
protected(privateis not allowed because the derived destructor must be able to invoke the base destructor) and would naturally also be nonvirtual (when the derived destructor invokes the base destructor, it does so nonvirtually whether declaredvirtualor not).

Note: This updated working draft contains all of the updates approved at the Bristol ISO C++ meeting to make this the C++14 Committee Draft. Today our project editor Stefanus Du Toit, wth the kind help of Jonathan Wakely and our editorial committee of Daniel Kruegler, Alisdair Meredith, Mike Miller, and Richard Smith, finished applying and verifying the updates voted in at Bristol. This document has now been transmitted to SC22 for circulation for C++14's primary international comment ballot.
The C++Now 2013 conference is still in flight, but presentation materials are being made available online as the conference progresses. You can find them here in their GitHub repository: