diff options
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; } |