summaryrefslogtreecommitdiff
path: root/include/fud_allocator.hpp
diff options
context:
space:
mode:
authorDominick Allen <djallen@librehumanitas.org>2024-10-29 10:28:11 -0500
committerDominick Allen <djallen@librehumanitas.org>2024-10-29 10:28:11 -0500
commitf281050ddb3b9d658cff67a254eedc3b79de5c5d (patch)
tree62c8673ca990a1df6169d08435924a69cc0b24b2 /include/fud_allocator.hpp
parent24cd7c8896b2091114e89ffda06b5c63eb2827c7 (diff)
Reduce string size, adopt clang-style SSO.
Diffstat (limited to 'include/fud_allocator.hpp')
-rw-r--r--include/fud_allocator.hpp5
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;
}