summaryrefslogtreecommitdiff
path: root/include/fud_hash.hpp
diff options
context:
space:
mode:
authorDominick Allen <djallen@librehumanitas.org>2025-03-31 08:33:08 -0500
committerDominick Allen <djallen@librehumanitas.org>2025-03-31 08:33:08 -0500
commit8b0bc70db73b48d833a3b5791e55921768cf6932 (patch)
tree862ae34933a7fc9f480038d974f59d7683a82605 /include/fud_hash.hpp
parentc426110f24516f92ecb8a5374e2a281f2c79787a (diff)
Remove reinterpret_cast usage in favor of std::bit_cast.
Diffstat (limited to 'include/fud_hash.hpp')
-rw-r--r--include/fud_hash.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/fud_hash.hpp b/include/fud_hash.hpp
index 57b5619..a472171 100644
--- a/include/fud_hash.hpp
+++ b/include/fud_hash.hpp
@@ -57,8 +57,7 @@ struct DefaultHash {
size_t operator()(const T& value, size_t seed) const
{
static_cast<void>(seed);
- // NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast)
- return djb2(reinterpret_cast<const utf8*>(&value), sizeof(value));
+ return djb2(std::bit_cast<const utf8*>(&value), sizeof(value));
}
};