diff --git a/develop/singles/headers/meta.hpp/meta_all.hpp b/develop/singles/headers/meta.hpp/meta_all.hpp index f4c8b06..9e0214b 100644 --- a/develop/singles/headers/meta.hpp/meta_all.hpp +++ b/develop/singles/headers/meta.hpp/meta_all.hpp @@ -10,7 +10,6 @@ #include #include #include -#include #include #include #include @@ -731,18 +730,18 @@ namespace meta_hpp::detail // REFERENCE: // https://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo_hash_function - template < std::size_t SizeBits = CHAR_BIT * sizeof(std::size_t) > + template < std::size_t SizeBytes = sizeof(std::size_t) > struct fnv1a_hash_traits; template <> - struct fnv1a_hash_traits<32> { // NOLINT(*-magic-numbers) + struct fnv1a_hash_traits { using underlying_type = std::uint32_t; static inline constexpr underlying_type prime{16777619U}; static inline constexpr underlying_type offset_basis{2166136261U}; }; template <> - struct fnv1a_hash_traits<64> { // NOLINT(*-magic-numbers) + struct fnv1a_hash_traits { using underlying_type = std::uint64_t; static inline constexpr underlying_type prime{1099511628211U}; static inline constexpr underlying_type offset_basis{14695981039346656037U}; diff --git a/headers/meta.hpp/meta_base/base.hpp b/headers/meta.hpp/meta_base/base.hpp index b50e0c3..072850f 100644 --- a/headers/meta.hpp/meta_base/base.hpp +++ b/headers/meta.hpp/meta_base/base.hpp @@ -7,7 +7,6 @@ #pragma once #include -#include #include #include #include diff --git a/headers/meta.hpp/meta_base/fnv1a_hash.hpp b/headers/meta.hpp/meta_base/fnv1a_hash.hpp index 9dcb848..ec380ac 100644 --- a/headers/meta.hpp/meta_base/fnv1a_hash.hpp +++ b/headers/meta.hpp/meta_base/fnv1a_hash.hpp @@ -13,18 +13,18 @@ namespace meta_hpp::detail // REFERENCE: // https://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo_hash_function - template < std::size_t SizeBits = CHAR_BIT * sizeof(std::size_t) > + template < std::size_t SizeBytes = sizeof(std::size_t) > struct fnv1a_hash_traits; template <> - struct fnv1a_hash_traits<32> { // NOLINT(*-magic-numbers) + struct fnv1a_hash_traits { using underlying_type = std::uint32_t; static inline constexpr underlying_type prime{16777619U}; static inline constexpr underlying_type offset_basis{2166136261U}; }; template <> - struct fnv1a_hash_traits<64> { // NOLINT(*-magic-numbers) + struct fnv1a_hash_traits { using underlying_type = std::uint64_t; static inline constexpr underlying_type prime{1099511628211U}; static inline constexpr underlying_type offset_basis{14695981039346656037U};