title: Function definition not found?
body: <p>I'm trying to define the function "getCurSize" but for some reason even though I define it below it, it is not recognizing the definition and is underlined in green. (Beginner here so patience appreciated)</p>
  
  <pre><code>template&lt;class ItemType&gt;
  class FDHPolynomial
  {
  private:
      FDHNode&lt;ItemType&gt;* headPtr;
      int itemcount;
      FDHNode&lt;ItemType&gt;* getPointedTo(const ItemType&amp; nodenum) const;
  
  public:
      FDHPolynomial();
      FDHPolynomial(const FDHPolynomial &lt;ItemType&gt;&amp; aPoly);
      virtual ~FDHPolynomial();
  
      int getCurSize() const;
      bool isEmpty() const;
      bool add(const ItemType&amp; newCoeffi, const ItemType&amp; newExpon);
      bool remove(const ItemType&amp; anExpon);
      void clear();
      bool contains(const ItemType&amp; aExpon) const;
      ItemType degree() const;
      ItemType coefficient(const ItemType&amp; power) const;
      void changeCoefficient(const ItemType&amp; newCoeffi, const ItemType&amp;power);
      std::vector&lt;ItemType&gt; toVector() const;
  
  void print();
  
  
  };
  
  template&lt;class ItemType&gt;
  int Polynomial&lt;ItemType&gt;::getCurSize() const
  {
      return itemCount;
  }
  </code></pre>