From 8b0bc70db73b48d833a3b5791e55921768cf6932 Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Mon, 31 Mar 2025 08:33:08 -0500 Subject: Remove reinterpret_cast usage in favor of std::bit_cast. --- include/fud_hash.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include/fud_hash.hpp') 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(seed); - // NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast) - return djb2(reinterpret_cast(&value), sizeof(value)); + return djb2(std::bit_cast(&value), sizeof(value)); } }; -- cgit v1.2.3