title: symbol 'T' is not resolved on the line after the template keyword
body: <p>I'm pretty new to C++ but know majority of other mainstream programming languages. I've looked online for a solution to my problem but can't seem to find one. Here is some of my code so far:</p>
  
  <p>object.h:</p>
  
  <pre><code>class Object final {
  public:
      template &lt;Component T&gt;
      const Component&amp; AddComponent&lt;T&gt;();
  };
  </code></pre>
  
  <p>object.cpp:</p>
  
  <pre><code>#include "object.h"
  
  template &lt;Component T&gt;
  const Component&amp; Object::AddComponent&lt;T&gt;() {
  
  }
  </code></pre>
  
  <p>The issue is that symbol 'T' is not resolved on the line after the template keyword. I am using eclipse and the g++ compiler on linux.</p>