June 26th, 2013, 01:17 AM
Nested vector initialization problem
I initialized a nested vector with the following code as:
And came across the following error during link stage:
vector<vector<Point> > vectorB(4, vector<Point> (int(vectorA.size()), 0));
"/usr/include/c++/4.6/bits/stl_vector.h:1080:4: error: no matching function for call to ‘std::vector<cv::Point_<int> >::_M_fill_initialize(std::vector<cv::Point_<int> >::size_type, int&)’ "
Please kindly suggest. Thank you.
Last edited by Ericxx; June 26th, 2013 at 01:27 AM.
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!