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:
parent
de8d9b8db3
commit
e6868fd211
@ -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};
|
||||
|
Loading…
Reference in New Issue
Block a user