Created
November 10, 2016 20:58
-
-
Save springmeyer/503f8a842f8c9a09bccf21325c03c866 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./sparsepp.h:4557:33: error: no viable conversion from 'pair<basic_string<[3 * ...]>, [...]>' to 'const pair<const basic_string<[3 * ...]>, [...]>' | |
return _insert_noresize(obj);; | |
^~~ | |
./sparsepp.h:5168:20: note: in instantiation of function template specialization 'spp::sparse_hashtable<std::__1::pair<std::__1::basic_string<char>, custom_type>, std::__1::basic_string<char>, | |
spp::spp_hash<std::__1::basic_string<char> >, spp::sparse_hash_map<std::__1::basic_string<char>, custom_type, spp::spp_hash<std::__1::basic_string<char> >, | |
std::__1::equal_to<std::__1::basic_string<char> >, spp::libc_allocator_with_realloc<std::__1::pair<const std::__1::basic_string<char>, custom_type> > >::SelectKey, | |
spp::sparse_hash_map<std::__1::basic_string<char>, custom_type, spp::spp_hash<std::__1::basic_string<char> >, std::__1::equal_to<std::__1::basic_string<char> >, | |
spp::libc_allocator_with_realloc<std::__1::pair<const std::__1::basic_string<char>, custom_type> > >::SetKey, std::__1::equal_to<std::__1::basic_string<char> >, | |
spp::libc_allocator_with_realloc<std::__1::pair<const std::__1::basic_string<char>, custom_type> > >::emplace<std::__1::basic_string<char>, custom_type>' requested here | |
return rep.emplace(std::forward<Args>(args)...); | |
^ | |
insertion_speed.cpp:103:19: note: in instantiation of function template specialization 'spp::sparse_hash_map<std::__1::basic_string<char>, custom_type, spp::spp_hash<std::__1::basic_string<char> | |
>, std::__1::equal_to<std::__1::basic_string<char> >, spp::libc_allocator_with_realloc<std::__1::pair<const std::__1::basic_string<char>, custom_type> > | |
>::emplace<std::__1::basic_string<char>, custom_type>' requested here | |
m.emplace(std::to_string(j),custom_type()); | |
^ | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/utility:282:5: note: candidate constructor not viable: no known conversion from | |
'mutable_value_type' (aka 'std::__1::pair<std::__1::basic_string<char>, custom_type>') to 'const std::__1::pair<const std::__1::basic_string<char>, custom_type> &' for 1st argument | |
pair(const pair& __p) = default; | |
^ | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/utility:317:9: note: candidate constructor | |
[with _U1 = std::__1::basic_string<char>, _U2 = custom_type] not viable: no known conversion from 'mutable_value_type' (aka 'std::__1::pair<std::__1::basic_string<char>, custom_type>') to | |
'pair<std::__1::basic_string<char>, custom_type> &&' for 1st argument | |
pair(pair<_U1, _U2>&& __p, | |
^ | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/utility:325:5: note: candidate constructor not viable: no known conversion from | |
'mutable_value_type' (aka 'std::__1::pair<std::__1::basic_string<char>, custom_type>') to 'std::__1::pair<const std::__1::basic_string<char>, custom_type> &&' for 1st argument | |
pair(pair&& __p) = default; | |
^ | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/utility:274:38: note: candidate template ignored: disabled by 'enable_if' | |
[with _U1 = std::__1::basic_string<char>, _U2 = custom_type] | |
,typename enable_if<is_convertible<const _U1&, _T1>::value && | |
^ | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/utility:349:41: note: candidate template ignored: disabled by 'enable_if' [with _Tuple = | |
std::__1::pair<std::__1::basic_string<char>, custom_type> &] | |
class = typename enable_if<__tuple_convertible<_Tuple, pair>::value>::type> | |
^ | |
./sparsepp.h:4513:64: note: passing argument to parameter 'obj' here | |
std::pair<iterator, bool> _insert_noresize(const_reference obj) | |
^ | |
./sparsepp.h:3549:30: error: no matching constructor for initialization of 'mutable_value_type' (aka 'std::__1::pair<std::__1::basic_string<char>, custom_type>') | |
::new (sr.first) mutable_value_type(val); | |
^ ~~~ | |
./sparsepp.h:4509:22: note: in instantiation of member function 'spp::sparsetable<std::__1::pair<std::__1::basic_string<char>, custom_type>, | |
spp::libc_allocator_with_realloc<std::__1::pair<std::__1::basic_string<char>, custom_type> > >::set' requested here | |
return table.set(pos, obj, erased); | |
^ | |
./sparsepp.h:4520:27: note: in instantiation of member function 'spp::sparse_hashtable<std::__1::pair<std::__1::basic_string<char>, custom_type>, std::__1::basic_string<char>, | |
spp::spp_hash<std::__1::basic_string<char> >, spp::sparse_hash_map<std::__1::basic_string<char>, custom_type, spp::spp_hash<std::__1::basic_string<char> >, | |
std::__1::equal_to<std::__1::basic_string<char> >, spp::libc_allocator_with_realloc<std::__1::pair<const std::__1::basic_string<char>, custom_type> > >::SelectKey, | |
spp::sparse_hash_map<std::__1::basic_string<char>, custom_type, spp::spp_hash<std::__1::basic_string<char> >, std::__1::equal_to<std::__1::basic_string<char> >, | |
spp::libc_allocator_with_realloc<std::__1::pair<const std::__1::basic_string<char>, custom_type> > >::SetKey, std::__1::equal_to<std::__1::basic_string<char> >, | |
spp::libc_allocator_with_realloc<std::__1::pair<const std::__1::basic_string<char>, custom_type> > >::_insert_at' requested here | |
reference ref(_insert_at(obj, pos._idx, pos._t == pt_erased)); | |
^ | |
./sparsepp.h:4557:16: note: in instantiation of member function 'spp::sparse_hashtable<std::__1::pair<std::__1::basic_string<char>, custom_type>, std::__1::basic_string<char>, | |
spp::spp_hash<std::__1::basic_string<char> >, spp::sparse_hash_map<std::__1::basic_string<char>, custom_type, spp::spp_hash<std::__1::basic_string<char> >, | |
std::__1::equal_to<std::__1::basic_string<char> >, spp::libc_allocator_with_realloc<std::__1::pair<const std::__1::basic_string<char>, custom_type> > >::SelectKey, | |
spp::sparse_hash_map<std::__1::basic_string<char>, custom_type, spp::spp_hash<std::__1::basic_string<char> >, std::__1::equal_to<std::__1::basic_string<char> >, | |
spp::libc_allocator_with_realloc<std::__1::pair<const std::__1::basic_string<char>, custom_type> > >::SetKey, std::__1::equal_to<std::__1::basic_string<char> >, | |
spp::libc_allocator_with_realloc<std::__1::pair<const std::__1::basic_string<char>, custom_type> > >::_insert_noresize' requested here | |
return _insert_noresize(obj);; | |
^ | |
./sparsepp.h:5168:20: note: in instantiation of function template specialization 'spp::sparse_hashtable<std::__1::pair<std::__1::basic_string<char>, custom_type>, std::__1::basic_string<char>, | |
spp::spp_hash<std::__1::basic_string<char> >, spp::sparse_hash_map<std::__1::basic_string<char>, custom_type, spp::spp_hash<std::__1::basic_string<char> >, | |
std::__1::equal_to<std::__1::basic_string<char> >, spp::libc_allocator_with_realloc<std::__1::pair<const std::__1::basic_string<char>, custom_type> > >::SelectKey, | |
spp::sparse_hash_map<std::__1::basic_string<char>, custom_type, spp::spp_hash<std::__1::basic_string<char> >, std::__1::equal_to<std::__1::basic_string<char> >, | |
spp::libc_allocator_with_realloc<std::__1::pair<const std::__1::basic_string<char>, custom_type> > >::SetKey, std::__1::equal_to<std::__1::basic_string<char> >, | |
spp::libc_allocator_with_realloc<std::__1::pair<const std::__1::basic_string<char>, custom_type> > >::emplace<std::__1::basic_string<char>, custom_type>' requested here | |
return rep.emplace(std::forward<Args>(args)...); | |
^ | |
insertion_speed.cpp:103:19: note: in instantiation of function template specialization 'spp::sparse_hash_map<std::__1::basic_string<char>, custom_type, spp::spp_hash<std::__1::basic_string<char> | |
>, std::__1::equal_to<std::__1::basic_string<char> >, spp::libc_allocator_with_realloc<std::__1::pair<const std::__1::basic_string<char>, custom_type> > | |
>::emplace<std::__1::basic_string<char>, custom_type>' requested here | |
m.emplace(std::to_string(j),custom_type()); | |
^ | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/utility:282:5: note: candidate constructor not viable: no known conversion from | |
'const pair<const basic_string<[3 * ...]>, [...]>' to 'const pair<basic_string<[3 * ...]>, [...]>' for 1st argument | |
pair(const pair& __p) = default; | |
^ | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/utility:325:5: note: candidate constructor not viable: no known conversion from | |
'const pair<const basic_string<[3 * ...]>, [...]>' to 'pair<basic_string<[3 * ...]>, [...]>' for 1st argument | |
pair(pair&& __p) = default; | |
^ | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/utility:274:38: note: candidate template ignored: disabled by 'enable_if' [with _U1 = | |
const std::__1::basic_string<char>, _U2 = custom_type] | |
,typename enable_if<is_convertible<const _U1&, _T1>::value && | |
^ | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/utility:317:9: note: candidate template ignored: substitution failure [with _U1 = const | |
std::__1::basic_string<char>, _U2 = custom_type] | |
pair(pair<_U1, _U2>&& __p, | |
^ | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/utility:349:41: note: candidate template ignored: disabled by 'enable_if' [with _Tuple = | |
const std::__1::pair<const std::__1::basic_string<char>, custom_type> &] | |
class = typename enable_if<__tuple_convertible<_Tuple, pair>::value>::type> | |
^ | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/utility:310:9: note: candidate constructor template not viable: requires 2 arguments, but | |
1 was provided | |
pair(_U1&& __u1, _U2&& __u2) | |
^ | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/utility:362:9: note: candidate constructor template not viable: requires 3 arguments, but | |
1 was provided | |
pair(piecewise_construct_t __pc, tuple<_Args1...> __first_args, | |
^ | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/utility:399:9: note: candidate constructor template not viable: requires 5 arguments, but | |
1 was provided | |
pair(piecewise_construct_t, | |
^ | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/utility:264:49: note: candidate constructor not viable: requires 0 arguments, but 1 was | |
provided | |
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR pair() : first(), second() {} | |
^ | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/utility:267:5: note: candidate constructor not viable: requires 2 arguments, but 1 was | |
provided | |
pair(const _T1& __x, const _T2& __y) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment