title: Cannot refer to class template without a template argument list
body: <p>I'm new to C++. This is for my homework and below is the code that was given to us by the professor to help us work on this assignment but it doesn't compile...  I've marked the line where error is generated and the error message is 
  "Cannot refer to template 'hash' without a template argument list".<br>
  I'm not sure how to fix it.  Can someone point me to the right direction, please?<br>
  (I've removed the lines that, I assume, is irrelevant to the error message.)</p>
  
  <p>The class is defined as:</p>
  
  <pre><code>template &lt;typename HashedObj&gt;
  class HashTable
  {
  public:
      //.... 
  private:
      struct HashEntry
      {
          HashedObj element;
          EntryType info;
          HashEntry( const HashedObj &amp; e = HashedObj( ), EntryType i = EMPTY )
             : element( e ), info( i ) { }
      };
  
      vector&lt;HashEntry&gt; array;
      int currentSize;
  
      //... some private member functions....
  
      int myhash( const HashedObj &amp; x ) const
      {
          int hashVal = hash( x ); &lt;&lt;--- line with error
  
          hashVal %= array.size( );
          if( hashVal &lt; 0 )
              hashVal += array.size( );
  
          return hashVal;
      }
  };
  
  int hash( const HashedObj &amp; key );
  int hash( int key );
  </code></pre>
  
  <p>--- and int hash() function in cpp file ----</p>
  
  <pre><code>int hash( const string &amp; key )
  {
      int hashVal = 0;
      for( int i = 0; i &lt; key.length( ); i++ )
          hashVal = 37 * hashVal + key[ i ];
  
      return hashVal;
  }
  
  int hash( int key )
  {
       return key;
  }
  </code></pre>