Hello everyone
could you please look at the error generated by the below piece of code? It is apparently generated by the IF statement inside the for loop because commenting this IF statement resolves the error.
and the error is:Code:for ( std::vector<TRS_block>::iterator trs = common_TRS.begin() ; trs < common_TRS.end(); trs++ ) { // error occurs because of this IF statement if(std::find( trs_file_as_blocks.begin(), trs_file_as_blocks.end(), *trs ) != trs_file_as_blocks.end()) { } }
Please suggest how to resolve this issue.Code:/usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../include/c++/4.4.4/bits/stl_algo.h:174: error: no match for ‘operator==’ in ‘__first.__gnu_cxx::__normal_iterator<_Iterator, _Container>::operator* [with _Iterator = mergeTRSLCdata::TRS_block*, _Container = std::vector<mergeTRSLCdata::TRS_block, std::allocator<mergeTRSLCdata::TRS_block> >]() == __val’
Thanks


Reply With Quote


Bookmarks