Hi,
I have this piece of code:
std::copy( fn.begin(), fn.end(), std::back_inserter( v ) );
where fn is a FileNode and v is and std::vector<cv::keypoint>.
I have the following error at compile time:
/usr/include/c++/4.7/bits/stl_iterator_base_types.h:166:53: error: no type named ‘iterator_category’ in ‘class cv::FileNodeIterator’
/usr/include/c++/4.7/bits/stl_iterator_base_types.h:167:53: error: no type named ‘value_type’ in ‘class cv::FileNodeIterator’
/usr/include/c++/4.7/bits/stl_iterator_base_types.h:168:53: error: no type named ‘difference_type’ in ‘class cv::FileNodeIterator’
/usr/include/c++/4.7/bits/stl_iterator_base_types.h:169:53: error: no type named ‘pointer’ in ‘class cv::FileNodeIterator’
/usr/include/c++/4.7/bits/stl_iterator_base_types.h:170:53: error: no type named ‘reference’ in ‘class cv::FileNodeIterator’
Shouldn't FileNodeIterator declare those typedefs?
Thanks!