I'm trying to make a list of unordered sets of coordinates, as main model for a game of life. As so, I am trying to make the following code work :
#include <unordered_set>
#include <list>
struct coords {int x; int y;};
std::list<std::unordered_set<coords>> data;
This code leads to many, many errors (Thanks C++....) like the ones that follow :
error: no match for call to ‘(const std::hash<coords>) (const coords&)’
error: ‘value’ is not a member of ‘std::__and_<std::__is_fast_hash<std::hash<coords> >, std::__detail::__is_noexcept_hash<coords, std::hash<coords> > >’
error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<coords> >, std::__detail::__is_noexcept_hash<coords, std::hash<coords> > > >’
and so on, and so forth.
Where do these errors come from, and more importantly, how could I have figured that out by myself, as those errors look totally unreadable ?