Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 9 years ago

Language

Compiler

Options

Author

anonymous

over 9 years ago

$
prog.cc:15:14: error: no matching function for call to 'const_hash'
     return {const_hash(std::forward<Strings>(strings))...};
             ^~~~~~~~~~
prog.cc:40:49: note: in instantiation of function template specialization 'const_hash_strings<int>' requested here
    constexpr std::array<unsigned, 0> values2 = const_hash_strings(5);
                                                ^
prog.cc:5:20: note: candidate function not viable: no known conversion from 'int' to 'const char *' for 1st argument
unsigned constexpr const_hash(const char *input) {
                   ^
prog.cc:40:39: error: no viable conversion from 'array<[...], sizeof...(Strings) aka 1>' to 'const array<[...], 0>'
    constexpr std::array<unsigned, 0> values2 = const_hash_strings(5);
                                      ^         ~~~~~~~~~~~~~~~~~~~~~
/usr/local/libcxx-head/include/c++/v1/array:122:30: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'std::array<unsigned int, sizeof...(Strings)>' to 'const std::__1::array<unsigned int, 0> &' for 1st argument
struct _LIBCPP_TYPE_VIS_ONLY array
                             ^
/usr/local/libcxx-head/include/c++/v1/array:122:30: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'std::array<unsigned int, sizeof...(Strings)>' to 'std::__1::array<unsigned int, 0> &&' for 1st argument
2 errors generated.
Exit Code:
1