title: Using class template and overloading / operators
body: <p>Heloo, I'm having trouble with overloading the / operator in a member function within a template class. I get the error 'error C2805: binary 'operator /' has too few parameters' but I think I'm giving the operator enough parameters. Here is part of my header file code</p>
  
  <pre><code>template &lt;class T&gt;
  typename complex&lt;T&gt;::complex operator/(complex&lt;T&gt; &amp;c)  
  {  
      complex temp; 
      temp.re = (re*c.getRe() + im*c.getIm())/(pow(c.getRe(),2)+pow(c.getIm(),2));    
      temp.im = (im*c.getRe() - re*c.getIm())/(pow(c.getRe(),2)+pow(c.getIm(),2)); 
      return temp;  
  }
  </code></pre>
  
  <p>My function declaration is given below</p>
  
  <pre><code>T operator/(complex&lt;T&gt; &amp;c); 
  </code></pre>
  
  <p>My declaration is indside the class template and the declaration outside, but within the same namespace. If you need the whole code please let me know. Thank you.</p>