I declare an unordered_map as following:
boost::unordered_map<std::array<char, 20>, t_torrent> torrent_ins;
and then insert an element into it (in the case the key hasn't existed, this map will return a reference for the new element)
t_torrent& torrent_in = torrent_ins[to_array<char,20>(in)];
But I got an error message:
../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>&)’
Could you guys help me explain this error? Thanks so much!