title: Compile time elimination of virtual tables?
body: <p>Assuming i have this hierarchy :</p>
  
  <pre><code>class Super
  {
   public:
      virtual void bar();
  };
  
  class Sub : public Super
  {
   public:
      virtual void bar() override;
  };
  </code></pre>
  
  <p>is there a way for me to avoid vtables despite using the virtual key word? (curiosity) i have read something about a compiler optimization that eliminates vtables when the object is known during compile time, I'm not really sure, been digging around google for a while, but could't find any answers, so does it mean these?</p>
  
  <pre><code>Sub sb;
  sb.bar(); //avoids vtable?
  Super&amp; sr = sb;
  sr.bar(); //avoids vtable?
  Super* srp = &amp;sb;
  srp-&gt;bar(); //avoids vtable? 
  </code></pre>