1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-07 04:15:34 +00:00

Allow constexpr hashing

This commit is contained in:
Matt 2022-08-14 19:06:29 +00:00 committed by Evil Eye
parent de8d9b8db3
commit e6868fd211

View file

@ -69,7 +69,7 @@ namespace Misc::StringUtils
{ {
using is_transparent = void; using is_transparent = void;
std::size_t operator()(std::string_view str) const constexpr std::size_t operator()(std::string_view str) const
{ {
// FNV-1a // FNV-1a
std::size_t hash{0xcbf29ce484222325ull}; std::size_t hash{0xcbf29ce484222325ull};