title: Illegal use of this type as an expression
body: <pre><code>class dataReader{
  private:
      ifstream gfxDataFile;
      int numVertices;
      vector&lt;*vertexData&gt; vertices;
  public:
      dataReader();
      dataReader(string file);
      ~dataReader();
      string getLine();
      int numberOfVertices();
  
  };
  </code></pre>
  
  <p>the line with the vector gives me the error</p>
  
  <p>vertexData: Illegal use of this type as an expression, any help guys?</p>
  
  <p>Heres the definition of vertexData</p>
  
  <pre><code>class vertexData{
  private:
      float x;
      float y;
      float z;
  public:
      vertexData();
      vertexData(float gx, float gy, float gz);
      ~vertexData();
      float getX();
      float getY();
      float getZ();
  };
  </code></pre>