mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Utils: Mark Trinity::HashFnv1a as constexpr
This commit is contained in:
@@ -30,7 +30,7 @@ namespace Trinity
|
||||
seed ^= std::hash<T>()(val) + 0x9E3779B9 + (seed << 6) + (seed >> 2);
|
||||
}
|
||||
|
||||
inline std::uint32_t HashFnv1a(std::string_view data)
|
||||
inline constexpr std::uint32_t HashFnv1a(std::string_view data)
|
||||
{
|
||||
std::uint32_t hash = 0x811C9DC5u;
|
||||
for (char c : data)
|
||||
|
||||
Reference in New Issue
Block a user