title: Why override under private inheritance?
body: <pre><code>class Base {
  public:
     virtual void f() {}
  };
  
  class Derived : private Base {
  public:
     void f() override {}
  };
  </code></pre>
  
  <p>My question is there any use to such override? Private inheritance implies that you can not store <code>Derived</code> in <code>Base</code> pointer and thus it will never be needed to dynamically dispatch <code>f</code> to the correct type.</p>