Advertisement
Guest User

Untitled

a guest
Aug 14th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.14 KB | None | 0 0
  1. [ 32%] Building CXX object CMakeFiles/teeworlds_srv.dir/src/game/server/score/file_score.cpp.o
  2. In file included from /usr/include/c++/6/bits/stl_algobase.h:71:0,
  3. from /usr/include/c++/6/algorithm:61,
  4. from /home/teeworlds/git/teeworlds/src/base/tl/algorithm.h:7,
  5. from /home/teeworlds/git/teeworlds/src/base/tl/sorted_array.h:6,
  6. from /home/teeworlds/git/teeworlds/src/game/server/score/file_score.cpp:4:
  7. /usr/include/c++/6/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Val_less_iter::operator()(_Value&, _Iterator) const [with _Value = const CFileScore::CPlayerScore; _Iterator = CFileScore::CPlayerScore*]':
  8. /usr/include/c++/6/bits/stl_algo.h:2049:14: required from '_ForwardIterator std::__upper_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare) [with _ForwardIterator = CFileScore::CPlayerScore*; _Tp = CFileScore::CPlayerScore; _Compare = __gnu_cxx::__ops::_Val_less_iter]'
  9. /usr/include/c++/6/bits/stl_algo.h:2507:26: required from 'void std::__merge_without_buffer(_BidirectionalIterator, _BidirectionalIterator, _BidirectionalIterator, _Distance, _Distance, _Compare) [with _BidirectionalIterator = CFileScore::CPlayerScore*; _Distance = long int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
  10. /usr/include/c++/6/bits/stl_algo.h:2769:34: required from 'void std::__inplace_stable_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = CFileScore::CPlayerScore*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
  11. /usr/include/c++/6/bits/stl_algo.h:4877:28: required from 'void std::__stable_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = CFileScore::CPlayerScore*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
  12. /usr/include/c++/6/bits/stl_algo.h:4912:36: required from 'void std::stable_sort(_RAIter, _RAIter) [with _RAIter = CFileScore::CPlayerScore*]'
  13. /home/teeworlds/git/teeworlds/src/base/tl/algorithm.h:114:18: required from 'void sort(R) [with R = plain_range_sorted<CFileScore::CPlayerScore>]'
  14. /home/teeworlds/git/teeworlds/src/game/server/score/file_score.cpp:200:19: required from here
  15. /usr/include/c++/6/bits/predefined_ops.h:72:22: error: no match for 'operator<' (operand types are 'const CFileScore::CPlayerScore' and 'CFileScore::CPlayerScore')
  16. { return __val < *__it; }
  17. ~~~~~~^~~~~~~
  18. In file included from /home/teeworlds/git/teeworlds/src/game/server/score/file_score.cpp:11:0:
  19. /home/teeworlds/git/teeworlds/src/game/server/score/file_score.h:30:8: note: candidate: bool CFileScore::CPlayerScore::operator<(const CFileScore::CPlayerScore&) <near match>
  20. bool operator<(const CPlayerScore& other)
  21. ^~~~~~~~
  22. /home/teeworlds/git/teeworlds/src/game/server/score/file_score.h:30:8: note: passing 'const CFileScore::CPlayerScore*' as 'this' argument discards qualifiers
  23. In file included from /usr/include/c++/6/bits/stl_algobase.h:67:0,
  24. from /usr/include/c++/6/algorithm:61,
  25. from /home/teeworlds/git/teeworlds/src/base/tl/algorithm.h:7,
  26. from /home/teeworlds/git/teeworlds/src/base/tl/sorted_array.h:6,
  27. from /home/teeworlds/git/teeworlds/src/game/server/score/file_score.cpp:4:
  28. /usr/include/c++/6/bits/stl_iterator.h:885:5: note: candidate: template<class _IteratorL, class _IteratorR, class _Container> bool __gnu_cxx::operator<(const __gnu_cxx::__normal_iterator<_IteratorL, _Container>&, const __gnu_cxx::__normal_iterator<_IteratorR, _Container>&)
  29. operator<(const __normal_iterator<_IteratorL, _Container>& __lhs,
  30. ^~~~~~~~
  31. /usr/include/c++/6/bits/stl_iterator.h:885:5: note: template argument deduction/substitution failed:
  32. In file included from /usr/include/c++/6/bits/stl_algobase.h:71:0,
  33. from /usr/include/c++/6/algorithm:61,
  34. from /home/teeworlds/git/teeworlds/src/base/tl/algorithm.h:7,
  35. from /home/teeworlds/git/teeworlds/src/base/tl/sorted_array.h:6,
  36. from /home/teeworlds/git/teeworlds/src/game/server/score/file_score.cpp:4:
  37. /usr/include/c++/6/bits/predefined_ops.h:72:22: note: 'const CFileScore::CPlayerScore' is not derived from 'const __gnu_cxx::__normal_iterator<_IteratorL, _Container>'
  38. { return __val < *__it; }
  39. ~~~~~~^~~~~~~
  40. In file included from /usr/include/c++/6/bits/stl_algobase.h:67:0,
  41. from /usr/include/c++/6/algorithm:61,
  42. from /home/teeworlds/git/teeworlds/src/base/tl/algorithm.h:7,
  43. from /home/teeworlds/git/teeworlds/src/base/tl/sorted_array.h:6,
  44. from /home/teeworlds/git/teeworlds/src/game/server/score/file_score.cpp:4:
  45. /usr/include/c++/6/bits/stl_iterator.h:892:5: note: candidate: template<class _Iterator, class _Container> bool __gnu_cxx::operator<(const __gnu_cxx::__normal_iterator<_Iterator, _Container>&, const __gnu_cxx::__normal_iterator<_Iterator, _Container>&)
  46. operator<(const __normal_iterator<_Iterator, _Container>& __lhs,
  47. ^~~~~~~~
  48. /usr/include/c++/6/bits/stl_iterator.h:892:5: note: template argument deduction/substitution failed:
  49. In file included from /usr/include/c++/6/bits/stl_algobase.h:71:0,
  50. from /usr/include/c++/6/algorithm:61,
  51. from /home/teeworlds/git/teeworlds/src/base/tl/algorithm.h:7,
  52. from /home/teeworlds/git/teeworlds/src/base/tl/sorted_array.h:6,
  53. from /home/teeworlds/git/teeworlds/src/game/server/score/file_score.cpp:4:
  54. /usr/include/c++/6/bits/predefined_ops.h:72:22: note: 'const CFileScore::CPlayerScore' is not derived from 'const __gnu_cxx::__normal_iterator<_Iterator, _Container>'
  55. { return __val < *__it; }
  56. ~~~~~~^~~~~~~
  57. CMakeFiles/teeworlds_srv.dir/build.make:580: recipe for target 'CMakeFiles/teeworlds_srv.dir/src/game/server/score/file_score.cpp.o' failed
  58. make[2]: *** [CMakeFiles/teeworlds_srv.dir/src/game/server/score/file_score.cpp.o] Error 1
  59. CMakeFiles/Makefile2:269: recipe for target 'CMakeFiles/teeworlds_srv.dir/all' failed
  60. make[1]: *** [CMakeFiles/teeworlds_srv.dir/all] Error 2
  61. Makefile:149: recipe for target 'all' failed
  62. make: *** [all] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement