Closed Gold512 closed 1 year ago
modifying fnv1a_hash to
constexpr std::size_t fnv1a_hash(const std::string_view& data)
{
// Fowler/Noll/Vo 1a variant.
// 32-bit
std::size_t prime = 16777619U;
std::size_t offset_basis = 2166136261U;
if constexpr (sizeof(std::size_t) == 8) {
// 64-bit
prime = 1099511628211ULL;
offset_basis = 14695981039346656037ULL;
}
std::size_t hash{ offset_basis };
for (auto& c : data) {
hash ^= c;
hash *= prime;
}
return hash;
}
seems to have fixed it so i'll mark it as closed
oh what's the different?
Unable to get the executable when i run
cmake --build .
Errors: