title: Template Specialization for a function without Parameters
body: <p>I need to specialize a function template in c++.</p>
  
  <pre><code>template&lt;typename T&gt;  
  void doStuff&lt;T&gt;() {}
  </code></pre>
  
  <p>To</p>
  
  <pre><code>template&lt;&gt;
  void doStuff&lt;DefinedClass&gt;();
  </code></pre>
  
  <p>and </p>
  
  <pre><code>template&lt;&gt;
  void doStuff&lt;DefinedClass2&gt;();
  </code></pre>
  
  <p>I guess that is not the correct syntax (since it is not compiling). How should I do it?<br/>
  Also, Since I will have not undefined template parameters in <code>doStuff&lt;DefinedClass&gt;</code>, would it be possible to declare the body in a .cpp?</p>
  
  <p>Note: doStuff will use T wihtin its body to declare a variable.</p>