diff options
author | Dominick Allen <djallen@librehumanitas.org> | 2024-10-29 10:28:11 -0500 |
---|---|---|
committer | Dominick Allen <djallen@librehumanitas.org> | 2024-10-29 10:28:11 -0500 |
commit | f281050ddb3b9d658cff67a254eedc3b79de5c5d (patch) | |
tree | 62c8673ca990a1df6169d08435924a69cc0b24b2 /include/fud_allocator.hpp | |
parent | 24cd7c8896b2091114e89ffda06b5c63eb2827c7 (diff) |
Reduce string size, adopt clang-style SSO.
Diffstat (limited to 'include/fud_allocator.hpp')
-rw-r--r-- | include/fud_allocator.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
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; } |