Improve Language::Hash too.

This commit is contained in:
Alexander McCord 2024-05-26 22:31:59 -07:00
parent 68efd51b56
commit d9835952b7

View file

@ -289,9 +289,9 @@ public:
{
size_t operator()(const Language& language) const
{
size_t hash = std::hash<const char*>{}(language.tag);
hash ^= tableHash[getIndexFromTag(language.tag)](&language.buffer);
return hash;
size_t seed = std::hash<const char*>{}(language.tag);
hashCombine(seed, tableHash[getIndexFromTag(language.tag)](&language.buffer));
return seed;
}
};
};