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:
parent
de8d9b8db3
commit
e6868fd211
1 changed files with 1 additions and 1 deletions
|
@ -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};
|
||||||
|
|
Loading…
Reference in a new issue