summaryrefslogtreecommitdiff
path: root/include/fud_hash.hpp
diff options
context:
space:
mode:
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));
}
};