title: Is a virtual function with a prototype that doesn't depend on template parameters valid in a template?
body: <p>Given the following code:</p>
  
  <pre><code>template &lt;class T&gt;
  class A
  {
  public:
    virtual void Foo() {};
    virtual void Bar(const T&amp; t) {};
  };
  </code></pre>
  
  <p>I know that virtual functions such as <code>Bar</code> above are not allowed since templates are generated during compile-time and virtual functions uses the virtual table, which occurs during run-time which means that there's no finite number of signatures for that virtual function that can satisfy the virtual table.</p>
  
  <p>But if the function has a signature that does not depend on <code>T</code>, such as <code>Foo</code> above, will that still be illegal?</p>