title: C++: error: summary string parsing error
body: <p>I'm having a problem creating a new instance of a class I defined. I created a class called PointArray with the corresponding constructor as follows:</p>
  
  <pre><code>class PointArray {
  private:
      int size;
      Point *points;
  
  public:
  PointArray(const Point pts[], const int siz) {
      size = siz;
      points = new Point[siz];
      for (int i = 0; i &lt; siz; i++) {
          points[i] = pts[i];
      }
  } 
  </code></pre>
  
  <p>However, when I try to create a new instance I get an "error: summary string parsing error". I try to create the instance as follows:</p>
  
  <pre><code>Point p(4,3);
  Point q(-1,5);
  Point r(2,-4);
  Point arr[3] = {p,q,r};
  PointArray pb(arr, 3);
  </code></pre>
  
  <p>where Point is a previously defined class which works fine. Any ideas what I am doing wrong here?</p>