Advertisement
Guest User

Untitled

a guest
Jun 19th, 2018
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. Error(s):
  2.  
  3. source_file.cpp: In function ‘int main()’:
  4. source_file.cpp:28:90: error: no matching function for call to ‘find(std::vector<std::__cxx11::basic_string<char> >::iterator, std::vector<std::__cxx11::basic_string<char> >::iterator, __gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> > >::value_type&)’
  5. if ( find(allowedExtensions.begin(), allowedExtensions.end(), output[output.size()-1]) != allowedExtensions.end() )
  6. ^
  7. In file included from /usr/include/c++/5/bits/locale_facets.h:48:0,
  8. from /usr/include/c++/5/bits/basic_ios.h:37,
  9. from /usr/include/c++/5/ios:44,
  10. from /usr/include/c++/5/ostream:38,
  11. from /usr/include/c++/5/iostream:39,
  12. from source_file.cpp:3:
  13. /usr/include/c++/5/bits/streambuf_iterator.h:369:5: note: candidate: template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(std::istreambuf_iterator<_CharT>, std::istreambuf_iterator<_CharT>, const _CharT2&)
  14. find(istreambuf_iterator<_CharT> __first,
  15. ^
  16. /usr/include/c++/5/bits/streambuf_iterator.h:369:5: note: template argument deduction/substitution failed:
  17. source_file.cpp:28:90: note: ‘__gnu_cxx::__normal_iterator<std::__cxx11::basic_string<char>*, std::vector<std::__cxx11::basic_string<char> > >’ is not derived from ‘std::istreambuf_iterator<_CharT>’
  18. if ( find(allowedExtensions.begin(), allowedExtensions.end(), output[output.size()-1]) != allowedExtensions.end() )
  19. ^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement