Skip to content

Instantly share code, notes, and snippets.

@tcbrindle
Created May 31, 2018 15:15
Show Gist options
  • Save tcbrindle/13c23fc5c1a46db12665ee509bf8265f to your computer and use it in GitHub Desktop.
Save tcbrindle/13c23fc5c1a46db12665ee509bf8265f to your computer and use it in GitHub Desktop.
Clang 6 sort(list.begin(), list.end()) error messages
In file included from example.cpp:2:
In file included from /usr/local/Cellar/llvm/6.0.0/include/c++/v1/list:177:
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/algorithm:4008:40: error: invalid operands to binary expression ('std::__1::__list_iterator<int, void *>' and 'std::__1::__list_iterator<int, void *>')
difference_type __len = __last - __first;
~~~~~~ ^ ~~~~~~~
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/algorithm:4201:5: note: in instantiation of function template specialization 'std::__1::__sort<std::__1::__less<int, int> &, std::__1::__list_iterator<int, void *> >' requested here
__sort<_Comp_ref>(__first, __last, __comp);
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/algorithm:4210:12: note: in instantiation of function template specialization 'std::__1::sort<std::__1::__list_iterator<int, void *>, std::__1::__less<int, int> >' requested here
_VSTD::sort(__first, __last, __less<typename iterator_traits<_RandomAccessIterator>::value_type>());
^
example.cpp:9:10: note: in instantiation of function template specialization 'std::__1::sort<std::__1::__list_iterator<int, void *> >' requested here
std::sort(list.begin(), list.end());
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/iterator:743:1: note: candidate template ignored: could not match 'reverse_iterator' against '__list_iterator'
operator-(const reverse_iterator<_Iter1>& __x, const reverse_iterator<_Iter2>& __y)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/iterator:1184:1: note: candidate template ignored: could not match 'move_iterator' against '__list_iterator'
operator-(const move_iterator<_Iter1>& __x, const move_iterator<_Iter2>& __y)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/iterator:1589:1: note: candidate template ignored: could not match '__wrap_iter' against '__list_iterator'
operator-(const __wrap_iter<_Iter1>& __x, const __wrap_iter<_Iter2>& __y) _NOEXCEPT_DEBUG
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:530:11: note: candidate template ignored: could not match 'fpos' against '__list_iterator'
streamoff operator-(const fpos<_StateT>& __x, const fpos<_StateT>& __y)
^
In file included from example.cpp:2:
In file included from /usr/local/Cellar/llvm/6.0.0/include/c++/v1/list:177:
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/algorithm:4099:33: error: invalid operands to binary expression ('std::__1::__list_iterator<int, void *>' and 'std::__1::__list_iterator<int, void *>')
if (__i >= __j)
~~~ ^ ~~~
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/utility:588:1: note: candidate template ignored: could not match 'pair' against '__list_iterator'
operator>=(const pair<_T1,_T2>& __x, const pair<_T1,_T2>& __y)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/iterator:726:1: note: candidate template ignored: could not match 'reverse_iterator' against '__list_iterator'
operator>=(const reverse_iterator<_Iter1>& __x, const reverse_iterator<_Iter2>& __y)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/iterator:1167:1: note: candidate template ignored: could not match 'move_iterator' against '__list_iterator'
operator>=(const move_iterator<_Iter1>& __x, const move_iterator<_Iter2>& __y)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/iterator:1540:1: note: candidate template ignored: could not match '__wrap_iter' against '__list_iterator'
operator>=(const __wrap_iter<_Iter1>& __x, const __wrap_iter<_Iter2>& __y) _NOEXCEPT_DEBUG
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/iterator:1572:1: note: candidate template ignored: could not match '__wrap_iter' against '__list_iterator'
operator>=(const __wrap_iter<_Iter1>& __x, const __wrap_iter<_Iter1>& __y) _NOEXCEPT_DEBUG
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/tuple:1203:1: note: candidate template ignored: could not match 'tuple' against '__list_iterator'
operator>=(const tuple<_Tp...>& __x, const tuple<_Up...>& __y)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/memory:2941:1: note: candidate template ignored: could not match 'unique_ptr' against '__list_iterator'
operator>=(const unique_ptr<_T1, _D1>& __x, const unique_ptr<_T2, _D2>& __y) {return !(__x < __y);}
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/memory:3028:1: note: candidate template ignored: could not match 'unique_ptr' against '__list_iterator'
operator>=(const unique_ptr<_T1, _D1>& __x, nullptr_t)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/memory:3036:1: note: candidate template ignored: could not match 'unique_ptr' against '__list_iterator'
operator>=(nullptr_t, const unique_ptr<_T1, _D1>& __x)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/memory:4783:1: note: candidate template ignored: could not match 'shared_ptr' against '__list_iterator'
operator>=(const shared_ptr<_Tp>& __x, const shared_ptr<_Up>& __y) _NOEXCEPT
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/memory:4871:1: note: candidate template ignored: could not match 'shared_ptr' against '__list_iterator'
operator>=(const shared_ptr<_Tp>& __x, nullptr_t) _NOEXCEPT
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/memory:4879:1: note: candidate template ignored: could not match 'shared_ptr' against '__list_iterator'
operator>=(nullptr_t, const shared_ptr<_Tp>& __x) _NOEXCEPT
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/list:2395:1: note: candidate template ignored: could not match 'list' against '__list_iterator'
operator>=(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/set:781:1: note: candidate template ignored: could not match 'set' against '__list_iterator'
operator>=(const set<_Key, _Compare, _Allocator>& __x,
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/set:1191:1: note: candidate template ignored: could not match 'multiset' against '__list_iterator'
operator>=(const multiset<_Key, _Compare, _Allocator>& __x,
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string_view:746:6: note: candidate template ignored: could not match 'basic_string_view' against '__list_iterator'
bool operator>=(basic_string_view<_CharT, _Traits> __lhs, basic_string_view<_CharT, _Traits> __rhs) _NOEXCEPT
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string_view:754:6: note: candidate template ignored: could not match 'basic_string_view' against '__list_iterator'
bool operator>=(basic_string_view<_CharT, _Traits> __lhs,
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string_view:762:6: note: candidate template ignored: could not match 'basic_string_view' against '__list_iterator'
bool operator>=(typename common_type<basic_string_view<_CharT, _Traits> >::type __lhs,
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:3737:1: note: candidate template ignored: could not match 'basic_string' against '__list_iterator'
operator>=(const basic_string<_CharT, _Traits, _Allocator>& __lhs,
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:3746:1: note: candidate template ignored: could not match 'basic_string' against '__list_iterator'
operator>=(const basic_string<_CharT, _Traits, _Allocator>& __lhs,
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:3755:1: note: candidate template ignored: could not match 'const _CharT *' against 'std::__1::__list_iterator<int, void *>'
operator>=(const _CharT* __lhs,
^
In file included from example.cpp:2:
In file included from /usr/local/Cellar/llvm/6.0.0/include/c++/v1/list:177:
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/algorithm:4123:17: error: invalid operands to binary expression ('std::__1::__list_iterator<int, void *>' and 'std::__1::__list_iterator<int, void *>')
if (__i < __j)
~~~ ^ ~~~
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/utility:572:1: note: candidate template ignored: could not match 'pair' against '__list_iterator'
operator< (const pair<_T1,_T2>& __x, const pair<_T1,_T2>& __y)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/iterator:702:1: note: candidate template ignored: could not match 'reverse_iterator' against '__list_iterator'
operator<(const reverse_iterator<_Iter1>& __x, const reverse_iterator<_Iter2>& __y)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/iterator:1143:1: note: candidate template ignored: could not match 'move_iterator' against '__list_iterator'
operator<(const move_iterator<_Iter1>& __x, const move_iterator<_Iter2>& __y)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/iterator:1512:1: note: candidate template ignored: could not match '__wrap_iter' against '__list_iterator'
operator<(const __wrap_iter<_Iter1>& __x, const __wrap_iter<_Iter2>& __y) _NOEXCEPT_DEBUG
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/tuple:1187:1: note: candidate template ignored: could not match 'tuple' against '__list_iterator'
operator<(const tuple<_Tp...>& __x, const tuple<_Up...>& __y)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/memory:2920:1: note: candidate template ignored: could not match 'unique_ptr' against '__list_iterator'
operator< (const unique_ptr<_T1, _D1>& __x, const unique_ptr<_T2, _D2>& __y)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/memory:2978:1: note: candidate template ignored: could not match 'unique_ptr' against '__list_iterator'
operator<(const unique_ptr<_T1, _D1>& __x, nullptr_t)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/memory:2987:1: note: candidate template ignored: could not match 'unique_ptr' against '__list_iterator'
operator<(nullptr_t, const unique_ptr<_T1, _D1>& __x)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/memory:4758:1: note: candidate template ignored: could not match 'shared_ptr' against '__list_iterator'
operator<(const shared_ptr<_Tp>& __x, const shared_ptr<_Up>& __y) _NOEXCEPT
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/memory:4823:1: note: candidate template ignored: could not match 'shared_ptr' against '__list_iterator'
operator<(const shared_ptr<_Tp>& __x, nullptr_t) _NOEXCEPT
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/memory:4831:1: note: candidate template ignored: could not match 'shared_ptr' against '__list_iterator'
operator<(nullptr_t, const shared_ptr<_Tp>& __x) _NOEXCEPT
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/list:2371:1: note: candidate template ignored: could not match 'list' against '__list_iterator'
operator< (const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/set:754:1: note: candidate template ignored: could not match 'set' against '__list_iterator'
operator< (const set<_Key, _Compare, _Allocator>& __x,
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/set:1164:1: note: candidate template ignored: could not match 'multiset' against '__list_iterator'
operator< (const multiset<_Key, _Compare, _Allocator>& __x,
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string_view:671:6: note: candidate template ignored: could not match 'basic_string_view' against '__list_iterator'
bool operator<(basic_string_view<_CharT, _Traits> __lhs, basic_string_view<_CharT, _Traits> __rhs) _NOEXCEPT
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string_view:678:6: note: candidate template ignored: could not match 'basic_string_view' against '__list_iterator'
bool operator<(basic_string_view<_CharT, _Traits> __lhs,
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string_view:686:6: note: candidate template ignored: could not match 'basic_string_view' against '__list_iterator'
bool operator<(typename common_type<basic_string_view<_CharT, _Traits> >::type __lhs,
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:3650:1: note: candidate template ignored: could not match 'basic_string' against '__list_iterator'
operator< (const basic_string<_CharT, _Traits, _Allocator>& __lhs,
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:3659:1: note: candidate template ignored: could not match 'basic_string' against '__list_iterator'
operator< (const basic_string<_CharT, _Traits, _Allocator>& __lhs,
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:3668:1: note: candidate template ignored: could not match 'const _CharT *' against 'std::__1::__list_iterator<int, void *>'
operator< (const _CharT* __lhs,
^
In file included from example.cpp:2:
In file included from /usr/local/Cellar/llvm/6.0.0/include/c++/v1/list:177:
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/algorithm:4157:65: error: invalid operands to binary expression ('std::__1::__list_iterator<int, void *>' and 'int')
if (_VSTD::__insertion_sort_incomplete<_Compare>(__i+1, __last, __comp))
~~~^~
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/iterator:761:1: note: candidate template ignored: could not match 'reverse_iterator<type-parameter-0-0>' against 'int'
operator+(typename reverse_iterator<_Iter>::difference_type __n, const reverse_iterator<_Iter>& __x)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/iterator:1202:1: note: candidate template ignored: could not match 'move_iterator<type-parameter-0-0>' against 'int'
operator+(typename move_iterator<_Iter>::difference_type __n, const move_iterator<_Iter>& __x)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/iterator:1615:1: note: candidate template ignored: could not match '__wrap_iter<type-parameter-0-0>' against 'int'
operator+(typename __wrap_iter<_Iter>::difference_type __n,
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:3765:1: note: candidate template ignored: could not match 'basic_string' against '__list_iterator'
operator+(const basic_string<_CharT, _Traits, _Allocator>& __lhs,
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:3778:1: note: candidate template ignored: could not match 'const _CharT *' against 'std::__1::__list_iterator<int, void *>'
operator+(const _CharT* __lhs , const basic_string<_CharT,_Traits,_Allocator>& __rhs)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:3790:1: note: candidate template ignored: could not match 'basic_string<type-parameter-0-0, type-parameter-0-1, type-parameter-0-2>' against 'int'
operator+(_CharT __lhs, const basic_string<_CharT,_Traits,_Allocator>& __rhs)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:3801:1: note: candidate template ignored: could not match 'basic_string' against '__list_iterator'
operator+(const basic_string<_CharT, _Traits, _Allocator>& __lhs, const _CharT* __rhs)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:3813:1: note: candidate template ignored: could not match 'basic_string' against '__list_iterator'
operator+(const basic_string<_CharT, _Traits, _Allocator>& __lhs, _CharT __rhs)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:3827:1: note: candidate template ignored: could not match 'basic_string' against '__list_iterator'
operator+(basic_string<_CharT, _Traits, _Allocator>&& __lhs, const basic_string<_CharT, _Traits, _Allocator>& __rhs)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:3835:1: note: candidate template ignored: could not match 'basic_string' against '__list_iterator'
operator+(const basic_string<_CharT, _Traits, _Allocator>& __lhs, basic_string<_CharT, _Traits, _Allocator>&& __rhs)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:3843:1: note: candidate template ignored: could not match 'basic_string' against '__list_iterator'
operator+(basic_string<_CharT, _Traits, _Allocator>&& __lhs, basic_string<_CharT, _Traits, _Allocator>&& __rhs)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:3851:1: note: candidate template ignored: could not match 'const _CharT *' against 'std::__1::__list_iterator<int, void *>'
operator+(const _CharT* __lhs , basic_string<_CharT,_Traits,_Allocator>&& __rhs)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:3859:1: note: candidate template ignored: could not match 'basic_string<type-parameter-0-0, type-parameter-0-1, type-parameter-0-2>' against 'int'
operator+(_CharT __lhs, basic_string<_CharT,_Traits,_Allocator>&& __rhs)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:3868:1: note: candidate template ignored: could not match 'basic_string' against '__list_iterator'
operator+(basic_string<_CharT, _Traits, _Allocator>&& __lhs, const _CharT* __rhs)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:3876:1: note: candidate template ignored: could not match 'basic_string' against '__list_iterator'
operator+(basic_string<_CharT, _Traits, _Allocator>&& __lhs, _CharT __rhs)
^
In file included from example.cpp:2:
In file included from /usr/local/Cellar/llvm/6.0.0/include/c++/v1/list:177:
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/algorithm:4174:17: error: invalid operands to binary expression ('std::__1::__list_iterator<int, void *>' and 'std::__1::__list_iterator<int, void *>')
if (__i - __first < __last - __i)
~~~ ^ ~~~~~~~
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/iterator:743:1: note: candidate template ignored: could not match 'reverse_iterator' against '__list_iterator'
operator-(const reverse_iterator<_Iter1>& __x, const reverse_iterator<_Iter2>& __y)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/iterator:1184:1: note: candidate template ignored: could not match 'move_iterator' against '__list_iterator'
operator-(const move_iterator<_Iter1>& __x, const move_iterator<_Iter2>& __y)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/iterator:1589:1: note: candidate template ignored: could not match '__wrap_iter' against '__list_iterator'
operator-(const __wrap_iter<_Iter1>& __x, const __wrap_iter<_Iter2>& __y) _NOEXCEPT_DEBUG
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:530:11: note: candidate template ignored: could not match 'fpos' against '__list_iterator'
streamoff operator-(const fpos<_StateT>& __x, const fpos<_StateT>& __y)
^
In file included from example.cpp:2:
In file included from /usr/local/Cellar/llvm/6.0.0/include/c++/v1/list:177:
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/algorithm:3916:20: error: invalid operands to binary expression ('std::__1::__list_iterator<int, void *>' and 'std::__1::__list_iterator<int, void *>')
switch (__last - __first)
~~~~~~ ^ ~~~~~~~
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/algorithm:4156:32: note: in instantiation of function template specialization 'std::__1::__insertion_sort_incomplete<std::__1::__less<int, int> &, std::__1::__list_iterator<int, void *> >' requested here
bool __fs = _VSTD::__insertion_sort_incomplete<_Compare>(__first, __i, __comp);
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/algorithm:4201:5: note: in instantiation of function template specialization 'std::__1::__sort<std::__1::__less<int, int> &, std::__1::__list_iterator<int, void *> >' requested here
__sort<_Comp_ref>(__first, __last, __comp);
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/algorithm:4210:12: note: in instantiation of function template specialization 'std::__1::sort<std::__1::__list_iterator<int, void *>, std::__1::__less<int, int> >' requested here
_VSTD::sort(__first, __last, __less<typename iterator_traits<_RandomAccessIterator>::value_type>());
^
example.cpp:9:10: note: in instantiation of function template specialization 'std::__1::sort<std::__1::__list_iterator<int, void *> >' requested here
std::sort(list.begin(), list.end());
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/iterator:743:1: note: candidate template ignored: could not match 'reverse_iterator' against '__list_iterator'
operator-(const reverse_iterator<_Iter1>& __x, const reverse_iterator<_Iter2>& __y)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/iterator:1184:1: note: candidate template ignored: could not match 'move_iterator' against '__list_iterator'
operator-(const move_iterator<_Iter1>& __x, const move_iterator<_Iter2>& __y)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/iterator:1589:1: note: candidate template ignored: could not match '__wrap_iter' against '__list_iterator'
operator-(const __wrap_iter<_Iter1>& __x, const __wrap_iter<_Iter2>& __y) _NOEXCEPT_DEBUG
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:530:11: note: candidate template ignored: could not match 'fpos' against '__list_iterator'
streamoff operator-(const fpos<_StateT>& __x, const fpos<_StateT>& __y)
^
In file included from example.cpp:2:
In file included from /usr/local/Cellar/llvm/6.0.0/include/c++/v1/list:177:
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/algorithm:3936:40: error: invalid operands to binary expression ('std::__1::__list_iterator<int, void *>' and 'int')
_RandomAccessIterator __j = __first+2;
~~~~~~~^~
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/iterator:761:1: note: candidate template ignored: could not match 'reverse_iterator<type-parameter-0-0>' against 'int'
operator+(typename reverse_iterator<_Iter>::difference_type __n, const reverse_iterator<_Iter>& __x)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/iterator:1202:1: note: candidate template ignored: could not match 'move_iterator<type-parameter-0-0>' against 'int'
operator+(typename move_iterator<_Iter>::difference_type __n, const move_iterator<_Iter>& __x)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/iterator:1615:1: note: candidate template ignored: could not match '__wrap_iter<type-parameter-0-0>' against 'int'
operator+(typename __wrap_iter<_Iter>::difference_type __n,
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:3765:1: note: candidate template ignored: could not match 'basic_string' against '__list_iterator'
operator+(const basic_string<_CharT, _Traits, _Allocator>& __lhs,
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:3778:1: note: candidate template ignored: could not match 'const _CharT *' against 'std::__1::__list_iterator<int, void *>'
operator+(const _CharT* __lhs , const basic_string<_CharT,_Traits,_Allocator>& __rhs)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:3790:1: note: candidate template ignored: could not match 'basic_string<type-parameter-0-0, type-parameter-0-1, type-parameter-0-2>' against 'int'
operator+(_CharT __lhs, const basic_string<_CharT,_Traits,_Allocator>& __rhs)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:3801:1: note: candidate template ignored: could not match 'basic_string' against '__list_iterator'
operator+(const basic_string<_CharT, _Traits, _Allocator>& __lhs, const _CharT* __rhs)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:3813:1: note: candidate template ignored: could not match 'basic_string' against '__list_iterator'
operator+(const basic_string<_CharT, _Traits, _Allocator>& __lhs, _CharT __rhs)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:3827:1: note: candidate template ignored: could not match 'basic_string' against '__list_iterator'
operator+(basic_string<_CharT, _Traits, _Allocator>&& __lhs, const basic_string<_CharT, _Traits, _Allocator>& __rhs)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:3835:1: note: candidate template ignored: could not match 'basic_string' against '__list_iterator'
operator+(const basic_string<_CharT, _Traits, _Allocator>& __lhs, basic_string<_CharT, _Traits, _Allocator>&& __rhs)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:3843:1: note: candidate template ignored: could not match 'basic_string' against '__list_iterator'
operator+(basic_string<_CharT, _Traits, _Allocator>&& __lhs, basic_string<_CharT, _Traits, _Allocator>&& __rhs)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:3851:1: note: candidate template ignored: could not match 'const _CharT *' against 'std::__1::__list_iterator<int, void *>'
operator+(const _CharT* __lhs , basic_string<_CharT,_Traits,_Allocator>&& __rhs)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:3859:1: note: candidate template ignored: could not match 'basic_string<type-parameter-0-0, type-parameter-0-1, type-parameter-0-2>' against 'int'
operator+(_CharT __lhs, basic_string<_CharT,_Traits,_Allocator>&& __rhs)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:3868:1: note: candidate template ignored: could not match 'basic_string' against '__list_iterator'
operator+(basic_string<_CharT, _Traits, _Allocator>&& __lhs, const _CharT* __rhs)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:3876:1: note: candidate template ignored: could not match 'basic_string' against '__list_iterator'
operator+(basic_string<_CharT, _Traits, _Allocator>&& __lhs, _CharT __rhs)
^
In file included from example.cpp:2:
In file included from /usr/local/Cellar/llvm/6.0.0/include/c++/v1/list:177:
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/algorithm:3937:39: error: invalid operands to binary expression ('std::__1::__list_iterator<int, void *>' and 'int')
__sort3<_Compare>(__first, __first+1, __j, __comp);
~~~~~~~^~
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/iterator:761:1: note: candidate template ignored: could not match 'reverse_iterator<type-parameter-0-0>' against 'int'
operator+(typename reverse_iterator<_Iter>::difference_type __n, const reverse_iterator<_Iter>& __x)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/iterator:1202:1: note: candidate template ignored: could not match 'move_iterator<type-parameter-0-0>' against 'int'
operator+(typename move_iterator<_Iter>::difference_type __n, const move_iterator<_Iter>& __x)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/iterator:1615:1: note: candidate template ignored: could not match '__wrap_iter<type-parameter-0-0>' against 'int'
operator+(typename __wrap_iter<_Iter>::difference_type __n,
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:3765:1: note: candidate template ignored: could not match 'basic_string' against '__list_iterator'
operator+(const basic_string<_CharT, _Traits, _Allocator>& __lhs,
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:3778:1: note: candidate template ignored: could not match 'const _CharT *' against 'std::__1::__list_iterator<int, void *>'
operator+(const _CharT* __lhs , const basic_string<_CharT,_Traits,_Allocator>& __rhs)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:3790:1: note: candidate template ignored: could not match 'basic_string<type-parameter-0-0, type-parameter-0-1, type-parameter-0-2>' against 'int'
operator+(_CharT __lhs, const basic_string<_CharT,_Traits,_Allocator>& __rhs)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:3801:1: note: candidate template ignored: could not match 'basic_string' against '__list_iterator'
operator+(const basic_string<_CharT, _Traits, _Allocator>& __lhs, const _CharT* __rhs)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:3813:1: note: candidate template ignored: could not match 'basic_string' against '__list_iterator'
operator+(const basic_string<_CharT, _Traits, _Allocator>& __lhs, _CharT __rhs)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:3827:1: note: candidate template ignored: could not match 'basic_string' against '__list_iterator'
operator+(basic_string<_CharT, _Traits, _Allocator>&& __lhs, const basic_string<_CharT, _Traits, _Allocator>& __rhs)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:3835:1: note: candidate template ignored: could not match 'basic_string' against '__list_iterator'
operator+(const basic_string<_CharT, _Traits, _Allocator>& __lhs, basic_string<_CharT, _Traits, _Allocator>&& __rhs)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:3843:1: note: candidate template ignored: could not match 'basic_string' against '__list_iterator'
operator+(basic_string<_CharT, _Traits, _Allocator>&& __lhs, basic_string<_CharT, _Traits, _Allocator>&& __rhs)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:3851:1: note: candidate template ignored: could not match 'const _CharT *' against 'std::__1::__list_iterator<int, void *>'
operator+(const _CharT* __lhs , basic_string<_CharT,_Traits,_Allocator>&& __rhs)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:3859:1: note: candidate template ignored: could not match 'basic_string<type-parameter-0-0, type-parameter-0-1, type-parameter-0-2>' against 'int'
operator+(_CharT __lhs, basic_string<_CharT,_Traits,_Allocator>&& __rhs)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:3868:1: note: candidate template ignored: could not match 'basic_string' against '__list_iterator'
operator+(basic_string<_CharT, _Traits, _Allocator>&& __lhs, const _CharT* __rhs)
^
/usr/local/Cellar/llvm/6.0.0/include/c++/v1/string:3876:1: note: candidate template ignored: could not match 'basic_string' against '__list_iterator'
operator+(basic_string<_CharT, _Traits, _Allocator>&& __lhs, _CharT __rhs)
^
8 errors generated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment