title: C++ - how to implement templated member function outside a templated class
body: <pre><code>template&lt;int N&gt;
  class myClass
  {
      template&lt;typename T&gt;
      void myFunction();
  };
  
  template&lt;typename T&gt;
  void myClass&lt;int N&gt;::myFunction() {} // doesn't work, nor do many other combinations!
  </code></pre>
  
  <p>Hi,</p>
  
  <p>Is it possible to achieve the above? I can implement myFunction in the class definition no problem. If so what would the syntax be? GCC 4.2 tells me:</p>
  
  <blockquote>
    <p>missing '>' to terminate the template argument list</p>
  </blockquote>
  
  <p>thanks for your help</p>