Author
anonymous
over 7 years ago
Language
Compiler
Options
Author
anonymous
over 7 years ago
$
prog.cc: In function 'void foo(Args ...)':
prog.cc:5:45: error: no match for 'operator>' (operand types are 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' and 'int')
if constexpr (sizeof...(args) == 0 || a > 2) {
~~^~~
In file included from /opt/wandbox/gcc-head/include/c++/8.0.0/bits/stl_algobase.h:64:0,
from /opt/wandbox/gcc-head/include/c++/8.0.0/bits/char_traits.h:39,
from /opt/wandbox/gcc-head/include/c++/8.0.0/ios:40,
from /opt/wandbox/gcc-head/include/c++/8.0.0/ostream:38,
from /opt/wandbox/gcc-head/include/c++/8.0.0/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/8.0.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>&)'
operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
^~~~~~~~
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/stl_pair.h:462:5: note: template argument deduction/substitution failed:
prog.cc:5:47: note: 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' is not derived from 'const std::pair<_T1, _T2>'
if constexpr (sizeof...(args) == 0 || a > 2) {
^
In file included from /opt/wandbox/gcc-head/include/c++/8.0.0/bits/stl_algobase.h:67:0,
from /opt/wandbox/gcc-head/include/c++/8.0.0/bits/char_traits.h:39,
from /opt/wandbox/gcc-head/include/c++/8.0.0/ios:40,
from /opt/wandbox/gcc-head/include/c++/8.0.0/ostream:38,
from /opt/wandbox/gcc-head/include/c++/8.0.0/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/stl_iterator.h:317:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)'
operator>(const reverse_iterator<_Iterator>& __x,
^~~~~~~~
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/stl_iterator.h:317:5: note: template argument deduction/substitution failed:
prog.cc:5:47: note: 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' is not derived from 'const std::reverse_iterator<_Iterator>'
if constexpr (sizeof...(args) == 0 || a > 2) {
^
In file included from /opt/wandbox/gcc-head/include/c++/8.0.0/bits/stl_algobase.h:67:0,
from /opt/wandbox/gcc-head/include/c++/8.0.0/bits/char_traits.h:39,
from /opt/wandbox/gcc-head/include/c++/8.0.0/ios:40,
from /opt/wandbox/gcc-head/include/c++/8.0.0/ostream:38,
from /opt/wandbox/gcc-head/include/c++/8.0.0/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/stl_iterator.h:355:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&)'
operator>(const reverse_iterator<_IteratorL>& __x,
^~~~~~~~
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/stl_iterator.h:355:5: note: template argument deduction/substitution failed:
prog.cc:5:47: note: 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' is not derived from 'const std::reverse_iterator<_Iterator>'
if constexpr (sizeof...(args) == 0 || a > 2) {
^
In file included from /opt/wandbox/gcc-head/include/c++/8.0.0/bits/stl_algobase.h:67:0,
from /opt/wandbox/gcc-head/include/c++/8.0.0/bits/char_traits.h:39,
from /opt/wandbox/gcc-head/include/c++/8.0.0/ios:40,
from /opt/wandbox/gcc-head/include/c++/8.0.0/ostream:38,
from /opt/wandbox/gcc-head/include/c++/8.0.0/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/stl_iterator.h:1160:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator>(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorR>&)'
operator>(const move_iterator<_IteratorL>& __x,
^~~~~~~~
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/stl_iterator.h:1160:5: note: template argument deduction/substitution failed:
prog.cc:5:47: note: 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' is not derived from 'const std::move_iterator<_IteratorL>'
if constexpr (sizeof...(args) == 0 || a > 2) {
^
In file included from /opt/wandbox/gcc-head/include/c++/8.0.0/bits/stl_algobase.h:67:0,
from /opt/wandbox/gcc-head/include/c++/8.0.0/bits/char_traits.h:39,
from /opt/wandbox/gcc-head/include/c++/8.0.0/ios:40,
from /opt/wandbox/gcc-head/include/c++/8.0.0/ostream:38,
from /opt/wandbox/gcc-head/include/c++/8.0.0/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/stl_iterator.h:1166:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator>(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorL>&)'
operator>(const move_iterator<_Iterator>& __x,
^~~~~~~~
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/stl_iterator.h:1166:5: note: template argument deduction/substitution failed:
prog.cc:5:47: note: 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' is not derived from 'const std::move_iterator<_IteratorL>'
if constexpr (sizeof...(args) == 0 || a > 2) {
^
In file included from /opt/wandbox/gcc-head/include/c++/8.0.0/bits/basic_string.h:48:0,
from /opt/wandbox/gcc-head/include/c++/8.0.0/string:52,
from /opt/wandbox/gcc-head/include/c++/8.0.0/bits/locale_classes.h:40,
from /opt/wandbox/gcc-head/include/c++/8.0.0/bits/ios_base.h:41,
from /opt/wandbox/gcc-head/include/c++/8.0.0/ios:42,
from /opt/wandbox/gcc-head/include/c++/8.0.0/ostream:38,
from /opt/wandbox/gcc-head/include/c++/8.0.0/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/8.0.0/string_view:499:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>(std::basic_string_view<_CharT, _Traits>, std::basic_string_view<_CharT, _Traits>)'
operator> (basic_string_view<_CharT, _Traits> __x,
^~~~~~~~
/opt/wandbox/gcc-head/include/c++/8.0.0/string_view:499:5: note: template argument deduction/substitution failed:
prog.cc:5:47: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
if constexpr (sizeof...(args) == 0 || a > 2) {
^
In file included from /opt/wandbox/gcc-head/include/c++/8.0.0/bits/basic_string.h:48:0,
from /opt/wandbox/gcc-head/include/c++/8.0.0/string:52,
from /opt/wandbox/gcc-head/include/c++/8.0.0/bits/locale_classes.h:40,
from /opt/wandbox/gcc-head/include/c++/8.0.0/bits/ios_base.h:41,
from /opt/wandbox/gcc-head/include/c++/8.0.0/ios:42,
from /opt/wandbox/gcc-head/include/c++/8.0.0/ostream:38,
from /opt/wandbox/gcc-head/include/c++/8.0.0/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/8.0.0/string_view:505:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>(std::basic_string_view<_CharT, _Traits>, std::__detail::__idt<std::basic_string_view<_CharT, _Traits> >)'
operator> (basic_string_view<_CharT, _Traits> __x,
^~~~~~~~
/opt/wandbox/gcc-head/include/c++/8.0.0/string_view:505:5: note: template argument deduction/substitution failed:
prog.cc:5:47: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
if constexpr (sizeof...(args) == 0 || a > 2) {
^
In file included from /opt/wandbox/gcc-head/include/c++/8.0.0/bits/basic_string.h:48:0,
from /opt/wandbox/gcc-head/include/c++/8.0.0/string:52,
from /opt/wandbox/gcc-head/include/c++/8.0.0/bits/locale_classes.h:40,
from /opt/wandbox/gcc-head/include/c++/8.0.0/bits/ios_base.h:41,
from /opt/wandbox/gcc-head/include/c++/8.0.0/ios:42,
from /opt/wandbox/gcc-head/include/c++/8.0.0/ostream:38,
from /opt/wandbox/gcc-head/include/c++/8.0.0/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/8.0.0/string_view:511:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator>(std::__detail::__idt<std::basic_string_view<_CharT, _Traits> >, std::basic_string_view<_CharT, _Traits>)'
operator> (__detail::__idt<basic_string_view<_CharT, _Traits>> __x,
^~~~~~~~
/opt/wandbox/gcc-head/include/c++/8.0.0/string_view:511:5: note: template argument deduction/substitution failed:
prog.cc:5:47: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int'
if constexpr (sizeof...(args) == 0 || a > 2) {
^
In file included from /opt/wandbox/gcc-head/include/c++/8.0.0/string:52:0,
from /opt/wandbox/gcc-head/include/c++/8.0.0/bits/locale_classes.h:40,
from /opt/wandbox/gcc-head/include/c++/8.0.0/bits/ios_base.h:41,
from /opt/wandbox/gcc-head/include/c++/8.0.0/ios:42,
from /opt/wandbox/gcc-head/include/c++/8.0.0/ostream:38,
from /opt/wandbox/gcc-head/include/c++/8.0.0/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/basic_string.h:6132:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)'
operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
^~~~~~~~
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/basic_string.h:6132:5: note: template argument deduction/substitution failed:
prog.cc:5:47: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>' and 'int'
if constexpr (sizeof...(args) == 0 || a > 2) {
^
In file included from /opt/wandbox/gcc-head/include/c++/8.0.0/string:52:0,
from /opt/wandbox/gcc-head/include/c++/8.0.0/bits/locale_classes.h:40,
from /opt/wandbox/gcc-head/include/c++/8.0.0/bits/ios_base.h:41,
from /opt/wandbox/gcc-head/include/c++/8.0.0/ios:42,
from /opt/wandbox/gcc-head/include/c++/8.0.0/ostream:38,
from /opt/wandbox/gcc-head/include/c++/8.0.0/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/basic_string.h:6145:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*)'
operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
^~~~~~~~
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/basic_string.h:6145:5: note: template argument deduction/substitution failed:
prog.cc:5:47: note: mismatched types 'const _CharT*' and 'int'
if constexpr (sizeof...(args) == 0 || a > 2) {
^
In file included from /opt/wandbox/gcc-head/include/c++/8.0.0/string:52:0,
from /opt/wandbox/gcc-head/include/c++/8.0.0/bits/locale_classes.h:40,
from /opt/wandbox/gcc-head/include/c++/8.0.0/bits/ios_base.h:41,
from /opt/wandbox/gcc-head/include/c++/8.0.0/ios:42,
from /opt/wandbox/gcc-head/include/c++/8.0.0/ostream:38,
from /opt/wandbox/gcc-head/include/c++/8.0.0/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/basic_string.h:6157:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const _CharT*, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)'
operator>(const _CharT* __lhs,
^~~~~~~~
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/basic_string.h:6157:5: note: template argument deduction/substitution failed:
prog.cc:5:47: note: mismatched types 'const _CharT*' and 'std::__cxx11::basic_string<char>'
if constexpr (sizeof...(args) == 0 || a > 2) {
^
In file included from /opt/wandbox/gcc-head/include/c++/8.0.0/bits/stl_algobase.h:67:0,
from /opt/wandbox/gcc-head/include/c++/8.0.0/bits/char_traits.h:39,
from /opt/wandbox/gcc-head/include/c++/8.0.0/ios:40,
from /opt/wandbox/gcc-head/include/c++/8.0.0/ostream:38,
from /opt/wandbox/gcc-head/include/c++/8.0.0/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/stl_iterator.h:903: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,
^~~~~~~~
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/stl_iterator.h:903:5: note: template argument deduction/substitution failed:
prog.cc:5:47: note: 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' is not derived from 'const __gnu_cxx::__normal_iterator<_IteratorL, _Container>'
if constexpr (sizeof...(args) == 0 || a > 2) {
^
In file included from /opt/wandbox/gcc-head/include/c++/8.0.0/bits/stl_algobase.h:67:0,
from /opt/wandbox/gcc-head/include/c++/8.0.0/bits/char_traits.h:39,
from /opt/wandbox/gcc-head/include/c++/8.0.0/ios:40,
from /opt/wandbox/gcc-head/include/c++/8.0.0/ostream:38,
from /opt/wandbox/gcc-head/include/c++/8.0.0/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/stl_iterator.h:910: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,
^~~~~~~~
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/stl_iterator.h:910:5: note: template argument deduction/substitution failed:
prog.cc:5:47: note: 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' is not derived from 'const __gnu_cxx::__normal_iterator<_Iterator, _Container>'
if constexpr (sizeof...(args) == 0 || a > 2) {
^
Exit Code:
1