Author
anonymous
over 6 years ago
Language
C++
Compiler
clang HEAD 8.0.0 (https://github.com/llvm-mirror/clang.git e7ed3c458ebaac2f62761c6c44ee044a75cad925) (https://github.com/llvm-mirror/llvm.git 5e3f62b203e1da97045bf1053b06ab06456c7f50)
Options
Warnings
Boost 1.68.0
C++2a(GNU)
no pedantic
Author
anonymous
over 6 years ago
$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/clang-head/include -std=gnu++2a
In file included from prog.cc:1:
/opt/wandbox/clang-head/include/c++/v1/tuple:1143:36: error: invalid operands to binary expression ('const int' and 'const std::__1::basic_string<char>')
if (_VSTD::get<__idx>(__x) < _VSTD::get<__idx>(__y))
~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~
/opt/wandbox/clang-head/include/c++/v1/tuple:1167:12: note: in instantiation of function template specialization 'std::__1::__tuple_less<2>::operator()<std::__1::tuple<const int &, const std::__1::basic_string<char> &>, std::__1::tuple<const std::__1::basic_string<char> &, const int &> >' requested here
return __tuple_less<sizeof...(_Tp)>()(__x, __y);
^
prog.cc:10:33: note: in instantiation of function template specialization 'std::__1::operator<<const int &, const std::__1::basic_string<char> &, const std::__1::basic_string<char> &, const int &>' requested here
return std::tie(a.a_, a.b_) < std::tie(b.b_, b.a_);
^
/opt/wandbox/clang-head/include/c++/v1/utility:575:1: note: candidate template ignored: could not match 'pair<type-parameter-0-0, type-parameter-0-1>' against 'const int'
operator< (const pair<_T1,_T2>& __x, const pair<_T1,_T2>& __y)
^
/opt/wandbox/clang-head/include/c++/v1/tuple:1165:1: note: candidate template ignored: could not match 'tuple<type-parameter-0-0...>' against 'const int'
operator<(const tuple<_Tp...>& __x, const tuple<_Up...>& __y)
^
/opt/wandbox/clang-head/include/c++/v1/iterator:720:1: note: candidate template ignored: could not match 'reverse_iterator<type-parameter-0-0>' against 'const int'
operator<(const reverse_iterator<_Iter1>& __x, const reverse_iterator<_Iter2>& __y)
^
/opt/wandbox/clang-head/include/c++/v1/iterator:1161:1: note: candidate template ignored: could not match 'move_iterator<type-parameter-0-0>' against 'const int'
operator<(const move_iterator<_Iter1>& __x, const move_iterator<_Iter2>& __y)
^
/opt/wandbox/clang-head/include/c++/v1/iterator:1533:1: note: candidate template ignored: could not match '__wrap_iter<type-parameter-0-0>' against 'const int'
operator<(const __wrap_iter<_Iter1>& __x, const __wrap_iter<_Iter2>& __y) _NOEXCEPT_DEBUG
^
/opt/wandbox/clang-head/include/c++/v1/memory:2960:1: note: candidate template ignored: could not match 'unique_ptr<type-parameter-0-0, type-parameter-0-1>' against 'const int'
operator< (const unique_ptr<_T1, _D1>& __x, const unique_ptr<_T2, _D2>& __y)
^
/opt/wandbox/clang-head/include/c++/v1/memory:3018:1: note: candidate template ignored: could not match 'unique_ptr<type-parameter-0-0, type-parameter-0-1>' against 'const int'
operator<(const unique_ptr<_T1, _D1>& __x, nullptr_t)
^
/opt/wandbox/clang-head/include/c++/v1/memory:3027:1: note: candidate template ignored: could not match 'unique_ptr' against 'basic_string'
operator<(nullptr_t, const unique_ptr<_T1, _D1>& __x)
^
/opt/wandbox/clang-head/include/c++/v1/memory:4798:1: note: candidate template ignored: could not match 'shared_ptr<type-parameter-0-0>' against 'const int'
operator<(const shared_ptr<_Tp>& __x, const shared_ptr<_Up>& __y) _NOEXCEPT
^
/opt/wandbox/clang-head/include/c++/v1/memory:4868:1: note: candidate template ignored: could not match 'shared_ptr<type-parameter-0-0>' against 'const int'
operator<(const shared_ptr<_Tp>& __x, nullptr_t) _NOEXCEPT
^
/opt/wandbox/clang-head/include/c++/v1/memory:4876:1: note: candidate template ignored: could not match 'shared_ptr' against 'basic_string'
operator<(nullptr_t, const shared_ptr<_Tp>& __x) _NOEXCEPT
^
/opt/wandbox/clang-head/include/c++/v1/string_view:674:6: note: candidate template ignored: could not match 'basic_string_view<type-parameter-0-0, type-parameter-0-1>' against 'int'
bool operator<(basic_string_view<_CharT, _Traits> __lhs, basic_string_view<_CharT, _Traits> __rhs) _NOEXCEPT
^
/opt/wandbox/clang-head/include/c++/v1/string_view:681:6: note: candidate template ignored: could not match 'basic_string_view<type-parameter-0-0, type-parameter-0-1>' against 'int'
bool operator<(basic_string_view<_CharT, _Traits> __lhs,
^
/opt/wandbox/clang-head/include/c++/v1/string_view:689:6: note: candidate template ignored: could not match 'basic_string_view' against 'basic_string'
bool operator<(typename common_type<basic_string_view<_CharT, _Traits> >::type __lhs,
^
/opt/wandbox/clang-head/include/c++/v1/string:3926:1: note: candidate template ignored: could not match 'basic_string<type-parameter-0-0, type-parameter-0-1, type-parameter-0-2>' against 'const int'
operator< (const basic_string<_CharT, _Traits, _Allocator>& __lhs,
^
/opt/wandbox/clang-head/include/c++/v1/string:3935:1: note: candidate template ignored: could not match 'basic_string<type-parameter-0-0, type-parameter-0-1, type-parameter-0-2>' against 'const int'
operator< (const basic_string<_CharT, _Traits, _Allocator>& __lhs,
^
/opt/wandbox/clang-head/include/c++/v1/string:3944:1: note: candidate template ignored: could not match 'const _CharT *' against 'int'
operator< (const _CharT* __lhs,
^
In file included from prog.cc:1:
/opt/wandbox/clang-head/include/c++/v1/tuple:1145:36: error: invalid operands to binary expression ('const std::__1::basic_string<char>' and 'const int')
if (_VSTD::get<__idx>(__y) < _VSTD::get<__idx>(__x))
~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~
/opt/wandbox/clang-head/include/c++/v1/utility:575:1: note: candidate template ignored: could not match 'pair' against 'basic_string'
operator< (const pair<_T1,_T2>& __x, const pair<_T1,_T2>& __y)
^
/opt/wandbox/clang-head/include/c++/v1/tuple:1165:1: note: candidate template ignored: could not match 'tuple' against 'basic_string'
operator<(const tuple<_Tp...>& __x, const tuple<_Up...>& __y)
^
/opt/wandbox/clang-head/include/c++/v1/iterator:720:1: note: candidate template ignored: could not match 'reverse_iterator' against 'basic_string'
operator<(const reverse_iterator<_Iter1>& __x, const reverse_iterator<_Iter2>& __y)
^
/opt/wandbox/clang-head/include/c++/v1/iterator:1161:1: note: candidate template ignored: could not match 'move_iterator' against 'basic_string'
operator<(const move_iterator<_Iter1>& __x, const move_iterator<_Iter2>& __y)
^
/opt/wandbox/clang-head/include/c++/v1/iterator:1533:1: note: candidate template ignored: could not match '__wrap_iter' against 'basic_string'
operator<(const __wrap_iter<_Iter1>& __x, const __wrap_iter<_Iter2>& __y) _NOEXCEPT_DEBUG
^
/opt/wandbox/clang-head/include/c++/v1/memory:2960:1: note: candidate template ignored: could not match 'unique_ptr' against 'basic_string'
operator< (const unique_ptr<_T1, _D1>& __x, const unique_ptr<_T2, _D2>& __y)
^
/opt/wandbox/clang-head/include/c++/v1/memory:3018:1: note: candidate template ignored: could not match 'unique_ptr' against 'basic_string'
operator<(const unique_ptr<_T1, _D1>& __x, nullptr_t)
^
/opt/wandbox/clang-head/include/c++/v1/memory:3027:1: note: candidate template ignored: could not match 'unique_ptr<type-parameter-0-0, type-parameter-0-1>' against 'const int'
operator<(nullptr_t, const unique_ptr<_T1, _D1>& __x)
^
/opt/wandbox/clang-head/include/c++/v1/memory:4798:1: note: candidate template ignored: could not match 'shared_ptr' against 'basic_string'
operator<(const shared_ptr<_Tp>& __x, const shared_ptr<_Up>& __y) _NOEXCEPT
^
/opt/wandbox/clang-head/include/c++/v1/memory:4868:1: note: candidate template ignored: could not match 'shared_ptr' against 'basic_string'
operator<(const shared_ptr<_Tp>& __x, nullptr_t) _NOEXCEPT
^
/opt/wandbox/clang-head/include/c++/v1/memory:4876:1: note: candidate template ignored: could not match 'shared_ptr<type-parameter-0-0>' against 'const int'
operator<(nullptr_t, const shared_ptr<_Tp>& __x) _NOEXCEPT
^
/opt/wandbox/clang-head/include/c++/v1/string_view:674:6: note: candidate template ignored: could not match 'basic_string_view' against 'basic_string'
bool operator<(basic_string_view<_CharT, _Traits> __lhs, basic_string_view<_CharT, _Traits> __rhs) _NOEXCEPT
^
/opt/wandbox/clang-head/include/c++/v1/string_view:681:6: note: candidate template ignored: could not match 'basic_string_view' against 'basic_string'
bool operator<(basic_string_view<_CharT, _Traits> __lhs,
^
/opt/wandbox/clang-head/include/c++/v1/string_view:689:6: note: candidate template ignored: could not match 'basic_string_view<type-parameter-0-0, type-parameter-0-1>' against 'int'
bool operator<(typename common_type<basic_string_view<_CharT, _Traits> >::type __lhs,
^
/opt/wandbox/clang-head/include/c++/v1/string:3926:1: note: candidate template ignored: could not match 'basic_string<type-parameter-0-0, type-parameter-0-1, type-parameter-0-2>' against 'const int'
operator< (const basic_string<_CharT, _Traits, _Allocator>& __lhs,
^
/opt/wandbox/clang-head/include/c++/v1/string:3935:1: note: candidate template ignored: could not match 'const _CharT *' against 'int'
operator< (const basic_string<_CharT, _Traits, _Allocator>& __lhs,
^
/opt/wandbox/clang-head/include/c++/v1/string:3944:1: note: candidate template ignored: could not match 'const _CharT *' against 'std::__1::basic_string<char>'
operator< (const _CharT* __lhs,
^
In file included from prog.cc:1:
/opt/wandbox/clang-head/include/c++/v1/tuple:1143:36: error: invalid operands to binary expression ('const std::__1::basic_string<char>' and 'const int')
if (_VSTD::get<__idx>(__x) < _VSTD::get<__idx>(__y))
~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~
/opt/wandbox/clang-head/include/c++/v1/tuple:1147:16: note: in instantiation of function template specialization 'std::__1::__tuple_less<1>::operator()<std::__1::tuple<const int &, const std::__1::basic_string<char> &>, std::__1::tuple<const std::__1::basic_string<char> &, const int &> >' requested here
return __tuple_less<_Ip-1>()(__x, __y);
^
/opt/wandbox/clang-head/include/c++/v1/tuple:1167:12: note: in instantiation of function template specialization 'std::__1::__tuple_less<2>::operator()<std::__1::tuple<const int &, const std::__1::basic_string<char> &>, std::__1::tuple<const std::__1::basic_string<char> &, const int &> >' requested here
return __tuple_less<sizeof...(_Tp)>()(__x, __y);
^
prog.cc:10:33: note: in instantiation of function template specialization 'std::__1::operator<<const int &, const std::__1::basic_string<char> &, const std::__1::basic_string<char> &, const int &>' requested here
return std::tie(a.a_, a.b_) < std::tie(b.b_, b.a_);
^
/opt/wandbox/clang-head/include/c++/v1/utility:575:1: note: candidate template ignored: could not match 'pair' against 'basic_string'
operator< (const pair<_T1,_T2>& __x, const pair<_T1,_T2>& __y)
^
/opt/wandbox/clang-head/include/c++/v1/tuple:1165:1: note: candidate template ignored: could not match 'tuple' against 'basic_string'
operator<(const tuple<_Tp...>& __x, const tuple<_Up...>& __y)
^
/opt/wandbox/clang-head/include/c++/v1/iterator:720:1: note: candidate template ignored: could not match 'reverse_iterator' against 'basic_string'
operator<(const reverse_iterator<_Iter1>& __x, const reverse_iterator<_Iter2>& __y)
^
/opt/wandbox/clang-head/include/c++/v1/iterator:1161:1: note: candidate template ignored: could not match 'move_iterator' against 'basic_string'
operator<(const move_iterator<_Iter1>& __x, const move_iterator<_Iter2>& __y)
^
/opt/wandbox/clang-head/include/c++/v1/iterator:1533:1: note: candidate template ignored: could not match '__wrap_iter' against 'basic_string'
operator<(const __wrap_iter<_Iter1>& __x, const __wrap_iter<_Iter2>& __y) _NOEXCEPT_DEBUG
^
/opt/wandbox/clang-head/include/c++/v1/memory:2960:1: note: candidate template ignored: could not match 'unique_ptr' against 'basic_string'
operator< (const unique_ptr<_T1, _D1>& __x, const unique_ptr<_T2, _D2>& __y)
^
/opt/wandbox/clang-head/include/c++/v1/memory:3018:1: note: candidate template ignored: could not match 'unique_ptr' against 'basic_string'
operator<(const unique_ptr<_T1, _D1>& __x, nullptr_t)
^
/opt/wandbox/clang-head/include/c++/v1/memory:3027:1: note: candidate template ignored: could not match 'unique_ptr<type-parameter-0-0, type-parameter-0-1>' against 'const int'
operator<(nullptr_t, const unique_ptr<_T1, _D1>& __x)
^
/opt/wandbox/clang-head/include/c++/v1/memory:4798:1: note: candidate template ignored: could not match 'shared_ptr' against 'basic_string'
operator<(const shared_ptr<_Tp>& __x, const shared_ptr<_Up>& __y) _NOEXCEPT
^
/opt/wandbox/clang-head/include/c++/v1/memory:4868:1: note: candidate template ignored: could not match 'shared_ptr' against 'basic_string'
operator<(const shared_ptr<_Tp>& __x, nullptr_t) _NOEXCEPT
^
/opt/wandbox/clang-head/include/c++/v1/memory:4876:1: note: candidate template ignored: could not match 'shared_ptr<type-parameter-0-0>' against 'const int'
operator<(nullptr_t, const shared_ptr<_Tp>& __x) _NOEXCEPT
^
/opt/wandbox/clang-head/include/c++/v1/string_view:674:6: note: candidate template ignored: could not match 'basic_string_view' against 'basic_string'
bool operator<(basic_string_view<_CharT, _Traits> __lhs, basic_string_view<_CharT, _Traits> __rhs) _NOEXCEPT
^
/opt/wandbox/clang-head/include/c++/v1/string_view:681:6: note: candidate template ignored: could not match 'basic_string_view' against 'basic_string'
bool operator<(basic_string_view<_CharT, _Traits> __lhs,
^
/opt/wandbox/clang-head/include/c++/v1/string_view:689:6: note: candidate template ignored: could not match 'basic_string_view<type-parameter-0-0, type-parameter-0-1>' against 'int'
bool operator<(typename common_type<basic_string_view<_CharT, _Traits> >::type __lhs,
^
/opt/wandbox/clang-head/include/c++/v1/string:3926:1: note: candidate template ignored: could not match 'basic_string<type-parameter-0-0, type-parameter-0-1, type-parameter-0-2>' against 'const int'
operator< (const basic_string<_CharT, _Traits, _Allocator>& __lhs,
^
/opt/wandbox/clang-head/include/c++/v1/string:3935:1: note: candidate template ignored: could not match 'const _CharT *' against 'int'
operator< (const basic_string<_CharT, _Traits, _Allocator>& __lhs,
^
/opt/wandbox/clang-head/include/c++/v1/string:3944:1: note: candidate template ignored: could not match 'const _CharT *' against 'std::__1::basic_string<char>'
operator< (const _CharT* __lhs,
^
In file included from prog.cc:1:
/opt/wandbox/clang-head/include/c++/v1/tuple:1145:36: error: invalid operands to binary expression ('const int' and 'const std::__1::basic_string<char>')
if (_VSTD::get<__idx>(__y) < _VSTD::get<__idx>(__x))
~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~
/opt/wandbox/clang-head/include/c++/v1/utility:575:1: note: candidate template ignored: could not match 'pair<type-parameter-0-0, type-parameter-0-1>' against 'const int'
operator< (const pair<_T1,_T2>& __x, const pair<_T1,_T2>& __y)
^
/opt/wandbox/clang-head/include/c++/v1/tuple:1165:1: note: candidate template ignored: could not match 'tuple<type-parameter-0-0...>' against 'const int'
operator<(const tuple<_Tp...>& __x, const tuple<_Up...>& __y)
^
/opt/wandbox/clang-head/include/c++/v1/iterator:720:1: note: candidate template ignored: could not match 'reverse_iterator<type-parameter-0-0>' against 'const int'
operator<(const reverse_iterator<_Iter1>& __x, const reverse_iterator<_Iter2>& __y)
^
/opt/wandbox/clang-head/include/c++/v1/iterator:1161:1: note: candidate template ignored: could not match 'move_iterator<type-parameter-0-0>' against 'const int'
operator<(const move_iterator<_Iter1>& __x, const move_iterator<_Iter2>& __y)
^
/opt/wandbox/clang-head/include/c++/v1/iterator:1533:1: note: candidate template ignored: could not match '__wrap_iter<type-parameter-0-0>' against 'const int'
operator<(const __wrap_iter<_Iter1>& __x, const __wrap_iter<_Iter2>& __y) _NOEXCEPT_DEBUG
^
/opt/wandbox/clang-head/include/c++/v1/memory:2960:1: note: candidate template ignored: could not match 'unique_ptr<type-parameter-0-0, type-parameter-0-1>' against 'const int'
operator< (const unique_ptr<_T1, _D1>& __x, const unique_ptr<_T2, _D2>& __y)
^
/opt/wandbox/clang-head/include/c++/v1/memory:3018:1: note: candidate template ignored: could not match 'unique_ptr<type-parameter-0-0, type-parameter-0-1>' against 'const int'
operator<(const unique_ptr<_T1, _D1>& __x, nullptr_t)
^
/opt/wandbox/clang-head/include/c++/v1/memory:3027:1: note: candidate template ignored: could not match 'unique_ptr' against 'basic_string'
operator<(nullptr_t, const unique_ptr<_T1, _D1>& __x)
^
/opt/wandbox/clang-head/include/c++/v1/memory:4798:1: note: candidate template ignored: could not match 'shared_ptr<type-parameter-0-0>' against 'const int'
operator<(const shared_ptr<_Tp>& __x, const shared_ptr<_Up>& __y) _NOEXCEPT
^
/opt/wandbox/clang-head/include/c++/v1/memory:4868:1: note: candidate template ignored: could not match 'shared_ptr<type-parameter-0-0>' against 'const int'
operator<(const shared_ptr<_Tp>& __x, nullptr_t) _NOEXCEPT
^
/opt/wandbox/clang-head/include/c++/v1/memory:4876:1: note: candidate template ignored: could not match 'shared_ptr' against 'basic_string'
operator<(nullptr_t, const shared_ptr<_Tp>& __x) _NOEXCEPT
^
/opt/wandbox/clang-head/include/c++/v1/string_view:674:6: note: candidate template ignored: could not match 'basic_string_view<type-parameter-0-0, type-parameter-0-1>' against 'int'
bool operator<(basic_string_view<_CharT, _Traits> __lhs, basic_string_view<_CharT, _Traits> __rhs) _NOEXCEPT
^
/opt/wandbox/clang-head/include/c++/v1/string_view:681:6: note: candidate template ignored: could not match 'basic_string_view<type-parameter-0-0, type-parameter-0-1>' against 'int'
bool operator<(basic_string_view<_CharT, _Traits> __lhs,
^
/opt/wandbox/clang-head/include/c++/v1/string_view:689:6: note: candidate template ignored: could not match 'basic_string_view' against 'basic_string'
bool operator<(typename common_type<basic_string_view<_CharT, _Traits> >::type __lhs,
^
/opt/wandbox/clang-head/include/c++/v1/string:3926:1: note: candidate template ignored: could not match 'basic_string<type-parameter-0-0, type-parameter-0-1, type-parameter-0-2>' against 'const int'
operator< (const basic_string<_CharT, _Traits, _Allocator>& __lhs,
^
/opt/wandbox/clang-head/include/c++/v1/string:3935:1: note: candidate template ignored: could not match 'basic_string<type-parameter-0-0, type-parameter-0-1, type-parameter-0-2>' against 'const int'
operator< (const basic_string<_CharT, _Traits, _Allocator>& __lhs,
^
/opt/wandbox/clang-head/include/c++/v1/string:3944:1: note: candidate template ignored: could not match 'const _CharT *' against 'int'
operator< (const _CharT* __lhs,
^
4 errors generated.
Exit Code:
1