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

Thread: Nested vector initialization problem

Threaded View

  1. #1
    Join Date
    Jun 2008
    Posts
    15

    Nested vector initialization problem

    Hello,

    I initialized a nested vector with the following code as:
    Code:
    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.

    Eric
    Last edited by Ericxx; June 26th, 2013 at 02: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

This is a CodeGuru survey question.


Featured


HTML5 Development Center