title: Cgal::Dynamic_dimension_tag error when trying to build vector of points
body: <p>I am trying to build a vector of <code>CGAL::points_d</code> using an iterator. I keep getting an error message which I don't understand. The error seems to be with the way that I try to pass the two vector iterators to the <code>CGAL::Points_d</code> object. I think it might center around the issue of indicating the dimension of the points, for which I used the <code>Dynamic_Dimension_Tag</code>, but I can't figure out any more than that. The message is below. </p>
  
  <p><code>error: no matching function for call to ‘std::vector&lt;CGAL::Wrap::Point_d&lt;CGAL::Epick_d&lt;CGAL::Dynamic_dimension_tag&gt; &gt; &gt;::vector(std::vector&lt;int&gt;::size_type, std::vector&lt;std::vector&lt;int&gt; &gt;::iterator, __gnu_cxx::__normal_iterator&lt;std::vector&lt;int&gt;*, std::vector&lt;std::vector&lt;int&gt; &gt; &gt;)’
       Vector_of_points points(u.size(), w.begin(), next(w.begin()));</code></p>
  
  <p>Here is some toy code I was working with. </p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;CGAL/Kernel_d/Point_d.h&gt;
  #include &lt;CGAL/Epick_d.h&gt;
  #include &lt;iostream&gt;
  #include &lt;vector&gt;
  
  
  typedef CGAL::Epick_d&lt; CGAL::Dynamic_dimension_tag &gt; Kernel;
  typedef Kernel::Point_d Point;
  typedef std::vector&lt;Point&gt; Vector_of_points;
  typedef std::vector&lt;int&gt; dbvec ;
  
  int main() {
  
      dbvec v ;
      dbvec u ;
      std::vector&lt;std::vector&lt;int&gt;&gt; w;
  
      int size_v = 20;
  
      for(int i=0; i &lt; size_v; ++i){
          v.push_back(i);
      }
  
      for(int i=size_v; i-- &gt;0; ){
          u.push_back(i);
  
      }
  
      w.push_back(u);
      w.push_back(v);
      w.push_back(u);
  
      Vector_of_points points;
  
      for(int i=0; i &lt; size_v; ++i) {
          points.push_back(Point(size_v, w[i].begin(), next(w[i].begin())));
      }
  
   std::cout &lt;&lt; points.size() &lt;&lt; std::endl;
      return 0;
  }
  </code></pre>