title: How to pass points vector as function parameter in cocos2d-x v3?
body: <p>The thing I am trying to achieve is to pass points vector as parameter of a function.</p>
  
  <pre><code>cocos2d::Vector&lt;cocos2d::Point&gt; p;
  
  
      p.pushBack(Point(5,5));
      p.pushBack(Point(19,30));
  .........
  .........
  //Function Call 
  this-&gt;passArray(p);
  
  //function definition
  void GameLayer::passArray(const cocos2d::Vector&lt;cocos2d::Point&gt; &amp;p)
  {
      for (int i = 0; i &lt; p.size(); i++) {
      std::cout&lt;&lt;p.at(i).x;
      }
  }
  </code></pre>
  
  <p>but it do not work. As array is not supported by v3, how can I achieve this?
  Thanks in advance for any kind of help.</p>