Going under the assumption that there is a legitimate reason for preventing derivation from some class, Bjarne gives a solution here for the answer to \"Can I stop people de
Try:
class D : public B, public virtual final { };