title: Linking problems template with return
body: <p>I'm having some problems on returning the parameter of a method as a template, look:</p>
  
  <pre><code>// CTestClass.h
  template&lt;class T&gt; 
  class CTestClass 
  {
  public:
      T getNewValue();
  };
  
  // CTestClass.cpp
  template&lt;class T&gt; 
  T CTestClass&lt;T&gt;::getNewValue()
  {
      return 10; // just for tests I'm returning hard coded 10
  }
  
  // main.cpp
  int _tmain(int argc, _TCHAR* argv[])
  {
      CTestClass&lt;int&gt; s;
      int a = s.getNewValue();
      return 0;
  }
  </code></pre>
  
  <p>I got the following error:</p>
  
  <p>error LNK2019: unresolved external symbol "public: int __thiscall CTestClass::getNewValue(void)" (?getNewValue@?$CTestClass@H@@QAEHXZ) referenced in function _wmain</p>