Guest User

Untitled

a guest
Dec 10th, 2012
334
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.78 KB | None | 0 0
  1. In file included from foo.cpp:1:
  2. In file included from /usr/include/c++/4.2.1/algorithm:64:
  3. /usr/include/c++/4.2.1/bits/stl_algobase.h:283:18: error: no viable overloaded
  4. '='
  5. *__result = *__first;
  6. ~~~~~~~~~ ^ ~~~~~~~~
  7. /usr/include/c++/4.2.1/bits/stl_algobase.h:315:14: note: in instantiation of
  8. function template specialization 'std::__copy<false,
  9. std::random_access_iterator_tag>::copy<unsigned long *,
  10. std::back_insert_iterator<std::vector<std::basic_string<char>,
  11. std::allocator<std::basic_string<char>>>> >' requested here
  12. return std::__copy<__simple, _Category>::copy(__first, __last, __result);
  13. ^
  14. /usr/include/c++/4.2.1/bits/stl_algobase.h:349:18: note: in instantiation of
  15. function template specialization 'std::__copy_aux<unsigned long *,
  16. std::back_insert_iterator<std::vector<std::basic_string<char>,
  17. std::allocator<std::basic_string<char>>>> >' requested here
  18. { return std::__copy_aux(__first.base(), __last.base(), __result); }
  19. ^
  20. /usr/include/c++/4.2.1/bits/stl_algobase.h:400:15: note: in instantiation of
  21. function template specialization 'std::__copy_normal<true,
  22. false>::__copy_n<__gnu_cxx::__normal_iterator<unsigned long *,
  23. std::vector<unsigned long, std::allocator<unsigned long>>>,
  24. std::back_insert_iterator<std::vector<std::basic_string<char>,
  25. std::allocator<std::basic_string<char>>>> >' requested here
  26. return std::__copy_normal<__in, __out>::__copy_n(__first, __last,
  27. ^
  28. foo.cpp:12:3: note: in instantiation of function template specialization
  29. 'std::copy<__gnu_cxx::__normal_iterator<unsigned long *,
  30. std::vector<unsigned long, std::allocator<unsigned long>>>,
  31. std::back_insert_iterator<std::vector<std::basic_string<char>,
  32. std::allocator<std::basic_string<char>>>> >' requested here
  33. std::copy(foo.begin(), foo.end(), std::back_inserter(bar));
  34. ^
  35. /usr/include/c++/4.2.1/bits/stl_iterator.h:385:11: note: candidate function (the
  36. implicit copy assignment operator) not viable: no known conversion from
  37. 'unsigned long' to 'const
  38. std::back_insert_iterator<std::vector<std::basic_string<char>,
  39. std::allocator<std::basic_string<char>>>>' for 1st argument;
  40. class back_insert_iterator
  41. ^
  42. /usr/include/c++/4.2.1/bits/stl_iterator.h:411:7: note: candidate function not
  43. viable: no known conversion from 'unsigned long' to 'const
  44. std::basic_string<char>' for 1st argument;
  45. operator=(typename _Container::const_reference __value)
  46. ^
  47. 1 error generated.
Advertisement
Add Comment
Please, Sign In to add comment