Created by
Added
snippet.txt- Ignore whitespace
+/usr/include/c++/7.2.0/bits/stl_function.h: In instantiation of 'constexpr bool std::greater<_Tp>::operator()(const _Tp&, const _Tp&) const [with _Tp = MyStruct]':
+/usr/include/c++/7.2.0/bits/predefined_ops.h:143:18: required from 'constexpr bool __gnu_cxx::__ops::_Iter_comp_iter<_Compare>::operator()(_Iterator1, _Iterator2) [with _Iterator1 = __gnu_cxx::__normal_iterator<MyStruct*, std::vector<MyStruct> >; _Iterator2 = __gnu_cxx::__normal_iterator<MyStruct*, std::vector<MyStruct> >; _Compare = std::greater<MyStruct>]'
+/usr/include/c++/7.2.0/bits/stl_algo.h:81:17: required from 'void std::__move_median_to_first(_Iterator, _Iterator, _Iterator, _Iterator, _Compare) [with _Iterator = __gnu_cxx::__normal_iterator<MyStruct*, std::vector<MyStruct> >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<std::greater<MyStruct> >]'
+/usr/include/c++/7.2.0/bits/stl_algo.h:1921:34: required from '_RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<MyStruct*, std::vector<MyStruct> >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<std::greater<MyStruct> >]'
+/usr/include/c++/7.2.0/bits/stl_algo.h:1953:38: required from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<MyStruct*, std::vector<MyStruct> >; _Size = long int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<std::greater<MyStruct> >]'
+/usr/include/c++/7.2.0/bits/stl_algo.h:1968:25: required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<MyStruct*, std::vector<MyStruct> >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<std::greater<MyStruct> >]'
+/usr/include/c++/7.2.0/bits/stl_algo.h:4868:18: required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<MyStruct*, std::vector<MyStruct> >; _Compare = std::greater<MyStruct>]'
+/usr/include/c++/7.2.0/bits/stl_function.h:376:20: error: no match for 'operator>' (operand types are 'const MyStruct' and 'const MyStruct')
+/usr/include/c++/7.2.0/bits/stl_pair.h:462:5: note: candidate: template<class _T1, class _T2> constexpr bool std::operator>(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)
+/usr/include/c++/7.2.0/bits/stl_pair.h:462:5: note: template argument deduction/substitution failed:
+/usr/include/c++/7.2.0/bits/stl_function.h:376:20: note: 'const MyStruct' is not derived from 'const std::pair<_T1, _T2>'
+/usr/include/c++/7.2.0/bits/stl_iterator.h:317:5: note: candidate: template<class _Iterator> bool std::operator>(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)
+/usr/include/c++/7.2.0/bits/stl_iterator.h:317:5: note: template argument deduction/substitution failed:
+/usr/include/c++/7.2.0/bits/stl_function.h:376:20: note: 'const MyStruct' is not derived from 'const std::reverse_iterator<_Iterator>'
+/usr/include/c++/7.2.0/bits/stl_iterator.h:355:5: note: candidate: template<class _IteratorL, class _IteratorR> bool std::operator>(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&)
+/usr/include/c++/7.2.0/bits/stl_iterator.h:355:5: note: template argument deduction/substitution failed:
+/usr/include/c++/7.2.0/bits/stl_function.h:376:20: note: 'const MyStruct' is not derived from 'const std::reverse_iterator<_Iterator>'
+/usr/include/c++/7.2.0/bits/stl_iterator.h:1166:5: note: candidate: template<class _IteratorL, class _IteratorR> bool std::operator>(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorR>&)
+/usr/include/c++/7.2.0/bits/stl_iterator.h:1166:5: note: template argument deduction/substitution failed:
+/usr/include/c++/7.2.0/bits/stl_function.h:376:20: note: 'const MyStruct' is not derived from 'const std::move_iterator<_IteratorL>'
+/usr/include/c++/7.2.0/bits/stl_iterator.h:1172:5: note: candidate: template<class _Iterator> bool std::operator>(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorL>&)
+/usr/include/c++/7.2.0/bits/stl_iterator.h:1172:5: note: template argument deduction/substitution failed:
+/usr/include/c++/7.2.0/bits/stl_function.h:376:20: note: 'const MyStruct' is not derived from 'const std::move_iterator<_IteratorL>'