title: C4430 error when using templates in VC++
body: <p>I am not so experienced with C++ templates &amp; run into problems. Perhaps, you can see the silly error I am doing. Thank you for your help!</p>
  
  <p>Constants.h:</p>
  
  <pre><code>#include "stdafx.h"
  #include &lt;io.h&gt;
  #include &lt;sstream&gt;
  
  class Constants
  {
  public:
      [...]
      template&lt;typedef const T&gt;
      static CString ToString(T VALUE);
  };
  </code></pre>
  
  <p>Constants.cpp:</p>
  
  <pre><code>template&lt;typedef const T&gt;
  CString Constants::ToString(T VALUE)
  {
      stringstream ss;
  
      ss &lt;&lt; VALUE;
  
      CString csRow = ss.str().c_str();
  
      return csRow;
  }
  </code></pre>