4
没有匹配的功能,当我声明一个unordered_map
如下:插入unordered_map
boost::unordered_map<std::array<char, 20>, t_torrent> torrent_ins;
,然后插入一个元素到它(在壳体中的键已经不存在,此映射将返回的一个参考新元素)
t_torrent& torrent_in = torrent_ins[to_array<char,20>(in)];
但我得到一个错误信息:
../src/Tracker/torrent_serialization.cpp:30: instantiated from here/usr/local/include/boost/functional/hash/extensions.hpp:176: error: no matching function for call to ‘hash_value(const std::array<char, 20ul>&)’
有限公司你们帮我解释这个错误吗?非常感谢!