From f281050ddb3b9d658cff67a254eedc3b79de5c5d Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Tue, 29 Oct 2024 10:28:11 -0500 Subject: Reduce string size, adopt clang-style SSO. --- include/fud_allocator.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include/fud_allocator.hpp') diff --git a/include/fud_allocator.hpp b/include/fud_allocator.hpp index 693111b..d4feccf 100644 --- a/include/fud_allocator.hpp +++ b/include/fud_allocator.hpp @@ -26,7 +26,7 @@ namespace fud { -class alignas(size_t) Allocator { +class alignas(std::max_align_t) Allocator { public: virtual ~Allocator() = default; @@ -37,7 +37,8 @@ class alignas(size_t) Allocator { virtual bool isEqual(const Allocator& rhs) const = 0; }; -constexpr bool operator==(const Allocator& lhs, const Allocator& rhs) { +constexpr bool operator==(const Allocator& lhs, const Allocator& rhs) +{ return &lhs == &rhs; } -- cgit v1.2.3