c++ - How to create a vector of CvSVM -
i want create std::vector of opencv cvsvm objects. when compile code: typedef vector<cvsvm> svm_vec; svm_vec svm_data = svm_vec(); an error occurs: in file included 2dpca.cpp:5:0: /usr/include/c++/4.8/bits/stl_construct.h: in instantiation of ‘void std::_construct(_t1*, const _t2&) [with _t1 = cvsvm; _t2 = cvsvm]’: /usr/include/c++/4.8/bits/stl_uninitialized.h:75:53: required ‘static _forwarditerator std::__uninitialized_copy<_trivialvaluetypes>::__uninit_copy(_inputiterator, _inputiterator, _forwarditerator) [with _inputiterator = __gnu_cxx::__normal_iterator<const cvsvm*, std::vector<cvsvm> >; _forwarditerator = cvsvm*; bool _trivialvaluetypes = false]’ /usr/include/c++/4.8/bits/stl_uninitialized.h:117:41: required ‘_forwarditerator std::uninitialized_copy(_inputiterator, _inputiterator, _forwarditerator) [with _inputiterator = __gnu_cxx::__normal_iterator<const cvsvm*, std::vector<cvsvm> >; _forwarditerator = cvsvm*]’ /usr/...