1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-03 17:37:18 +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;
std::size_t operator()(std::string_view str) const
constexpr std::size_t operator()(std::string_view str) const
{
// FNV-1a
std::size_t hash{0xcbf29ce484222325ull};