Nested vector initialization problem
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 7 of 7

Thread: Nested vector initialization problem

Threaded View

  1. #1
    Join Date
    Jun 2008

    Nested vector initialization problem


    I initialized a nested vector with the following code as:
    vector<vector<Point> > vectorB(4, vector<Point> (int(vectorA.size()), 0));
    And came across the following error during link stage:
    "/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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)