Author
anonymous
over 7 years ago
Language
Compiler
Options
Author
anonymous
over 7 years ago
$
In file included from prog.cc:1:
In file included from /opt/wandbox/clang-head/include/c++/v1/variant:202:
In file included from /opt/wandbox/clang-head/include/c++/v1/array:109:
In file included from /opt/wandbox/clang-head/include/c++/v1/algorithm:643:
In file included from /opt/wandbox/clang-head/include/c++/v1/memory:659:
/opt/wandbox/clang-head/include/c++/v1/tuple:1016:37: error: no matching function for call to '__find_idx'
static constexpr size_t value = __find_detail::__find_idx(0, __matches);
^~~~~~~~~~~~~~~~~~~~~~~~~
/opt/wandbox/clang-head/include/c++/v1/tuple:1017:20: note: in instantiation of static data member 'std::__1::__find_detail::__find_exactly_one_checked<std::__1::basic_string<char>, std::__1::basic_string<char>, unsigned long>::value' requested here
static_assert (value != __not_found, "type not found in type list" );
^
/opt/wandbox/clang-head/include/c++/v1/tuple:1030:14: note: in instantiation of template class 'std::__1::__find_detail::__find_exactly_one_checked<std::__1::basic_string<char>, std::__1::basic_string<char>, unsigned long>' requested here
: public __find_detail::__find_exactly_one_checked<_T1, _Args...> {
^
/opt/wandbox/clang-head/include/c++/v1/variant:1429:24: note: in instantiation of template class 'std::__1::__find_exactly_one_t<std::__1::basic_string<char>, std::__1::basic_string<char>, unsigned long>' requested here
return _VSTD::get_if<__find_exactly_one_t<_Tp, _Types...>::value>(__v);
^
prog.cc:6:16: note: in instantiation of function template specialization 'std::__1::get_if<std::__1::basic_string<char>, std::__1::basic_string<char>, unsigned long>' requested here
(void)std::get_if< std::string >(&v);
^
/opt/wandbox/clang-head/include/c++/v1/tuple:1008:18: note: candidate template ignored: could not match 'const bool' against 'const bool'
constexpr size_t __find_idx(size_t __i, const bool (&__matches)[_Nx]) {
^
/opt/wandbox/clang-head/include/c++/v1/tuple:1017:20: error: static_assert expression is not an integral constant expression
static_assert (value != __not_found, "type not found in type list" );
^~~~~~~~~~~~~~~~~~~~
/opt/wandbox/clang-head/include/c++/v1/tuple:1030:14: note: in instantiation of template class 'std::__1::__find_detail::__find_exactly_one_checked<std::__1::basic_string<char>, std::__1::basic_string<char>, unsigned long>' requested here
: public __find_detail::__find_exactly_one_checked<_T1, _Args...> {
^
/opt/wandbox/clang-head/include/c++/v1/variant:1429:24: note: in instantiation of template class 'std::__1::__find_exactly_one_t<std::__1::basic_string<char>, std::__1::basic_string<char>, unsigned long>' requested here
return _VSTD::get_if<__find_exactly_one_t<_Tp, _Types...>::value>(__v);
^
prog.cc:6:16: note: in instantiation of function template specialization 'std::__1::get_if<std::__1::basic_string<char>, std::__1::basic_string<char>, unsigned long>' requested here
(void)std::get_if< std::string >(&v);
^
2 errors generated.
Exit Code:
1