Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [ 32%] Building CXX object CMakeFiles/teeworlds_srv.dir/src/game/server/score/file_score.cpp.o
- In file included from /usr/include/c++/6/bits/stl_algobase.h:71:0,
- from /usr/include/c++/6/algorithm:61,
- from /home/teeworlds/git/teeworlds/src/base/tl/algorithm.h:7,
- from /home/teeworlds/git/teeworlds/src/base/tl/sorted_array.h:6,
- from /home/teeworlds/git/teeworlds/src/game/server/score/file_score.cpp:4:
- /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*]':
- /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]'
- /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]'
- /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]'
- /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]'
- /usr/include/c++/6/bits/stl_algo.h:4912:36: required from 'void std::stable_sort(_RAIter, _RAIter) [with _RAIter = CFileScore::CPlayerScore*]'
- /home/teeworlds/git/teeworlds/src/base/tl/algorithm.h:114:18: required from 'void sort(R) [with R = plain_range_sorted<CFileScore::CPlayerScore>]'
- /home/teeworlds/git/teeworlds/src/game/server/score/file_score.cpp:200:19: required from here
- /usr/include/c++/6/bits/predefined_ops.h:72:22: error: no match for 'operator<' (operand types are 'const CFileScore::CPlayerScore' and 'CFileScore::CPlayerScore')
- { return __val < *__it; }
- ~~~~~~^~~~~~~
- In file included from /home/teeworlds/git/teeworlds/src/game/server/score/file_score.cpp:11:0:
- /home/teeworlds/git/teeworlds/src/game/server/score/file_score.h:30:8: note: candidate: bool CFileScore::CPlayerScore::operator<(const CFileScore::CPlayerScore&) <near match>
- bool operator<(const CPlayerScore& other)
- ^~~~~~~~
- /home/teeworlds/git/teeworlds/src/game/server/score/file_score.h:30:8: note: passing 'const CFileScore::CPlayerScore*' as 'this' argument discards qualifiers
- In file included from /usr/include/c++/6/bits/stl_algobase.h:67:0,
- from /usr/include/c++/6/algorithm:61,
- from /home/teeworlds/git/teeworlds/src/base/tl/algorithm.h:7,
- from /home/teeworlds/git/teeworlds/src/base/tl/sorted_array.h:6,
- from /home/teeworlds/git/teeworlds/src/game/server/score/file_score.cpp:4:
- /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>&)
- operator<(const __normal_iterator<_IteratorL, _Container>& __lhs,
- ^~~~~~~~
- /usr/include/c++/6/bits/stl_iterator.h:885:5: note: template argument deduction/substitution failed:
- In file included from /usr/include/c++/6/bits/stl_algobase.h:71:0,
- from /usr/include/c++/6/algorithm:61,
- from /home/teeworlds/git/teeworlds/src/base/tl/algorithm.h:7,
- from /home/teeworlds/git/teeworlds/src/base/tl/sorted_array.h:6,
- from /home/teeworlds/git/teeworlds/src/game/server/score/file_score.cpp:4:
- /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>'
- { return __val < *__it; }
- ~~~~~~^~~~~~~
- In file included from /usr/include/c++/6/bits/stl_algobase.h:67:0,
- from /usr/include/c++/6/algorithm:61,
- from /home/teeworlds/git/teeworlds/src/base/tl/algorithm.h:7,
- from /home/teeworlds/git/teeworlds/src/base/tl/sorted_array.h:6,
- from /home/teeworlds/git/teeworlds/src/game/server/score/file_score.cpp:4:
- /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>&)
- operator<(const __normal_iterator<_Iterator, _Container>& __lhs,
- ^~~~~~~~
- /usr/include/c++/6/bits/stl_iterator.h:892:5: note: template argument deduction/substitution failed:
- In file included from /usr/include/c++/6/bits/stl_algobase.h:71:0,
- from /usr/include/c++/6/algorithm:61,
- from /home/teeworlds/git/teeworlds/src/base/tl/algorithm.h:7,
- from /home/teeworlds/git/teeworlds/src/base/tl/sorted_array.h:6,
- from /home/teeworlds/git/teeworlds/src/game/server/score/file_score.cpp:4:
- /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>'
- { return __val < *__it; }
- ~~~~~~^~~~~~~
- CMakeFiles/teeworlds_srv.dir/build.make:580: recipe for target 'CMakeFiles/teeworlds_srv.dir/src/game/server/score/file_score.cpp.o' failed
- make[2]: *** [CMakeFiles/teeworlds_srv.dir/src/game/server/score/file_score.cpp.o] Error 1
- CMakeFiles/Makefile2:269: recipe for target 'CMakeFiles/teeworlds_srv.dir/all' failed
- make[1]: *** [CMakeFiles/teeworlds_srv.dir/all] Error 2
- Makefile:149: recipe for target 'all' failed
- make: *** [all] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement