|
|
|
|
/usr/include/c++/4.6/bits/stl_algo.h:2416:4: error: no match for call to ‘(PPBINARY_ON) (std::vector<std::basic_string<char> >&, const char [9])’ note: bool PPBINARY_ON::operator()(const string&, const std::vector<std::basic_string<char> >&) note: no known conversion for argument 1 from ‘std::vector<std::basic_string<char> >’ to ‘const string& {aka const std::basic_string<char>&}’ |
/usr/include/c++/4.6/bits/stl_algo.h: In function ‘bool std::binary_search(_FIter, _FIter, const _Tp&, _Compare) [with _FIter = __gnu_cxx::__normal_iterator<std::vector<std::basic_string<char> >*, std::vector<std::vector<std::basic_string<char> > > >, _Tp = char [9], _Compare = BINARY_ON]’: binarysearch.cpp:17:86: instantiated from here /usr/include/c++/4.6/bits/stl_algo.h:2714:56: error: no match for call to ‘(BINARY_ON) (const char [9], std::vector<std::basic_string<char> >&)’ note: bool BINARY_ON::operator()(const std::vector<std::basic_string<char> >&, const string&) note: no known conversion for argument 1 from ‘const char [9]’ to ‘const std::vector<std::basic_string<char> >&’ |
|
|
bool found = std::lower_bound( v2d.begin(), v2d.end(), "01011991", comp2 ) ;
error: cannot convert ‘__gnu_cxx::__normal_iterator<std::vector<std::basic_string<char> >*, std::vector<std::vector<std::basic_string<char> > > >’ to ‘bool’ in initialization |