summaryrefslogtreecommitdiff
path: root/asl/allocator.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'asl/allocator.hpp')
-rw-r--r--asl/allocator.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/asl/allocator.hpp b/asl/allocator.hpp
index eb03e0f..5f8f9b6 100644
--- a/asl/allocator.hpp
+++ b/asl/allocator.hpp
@@ -7,7 +7,7 @@ namespace asl
{
template<typename T>
-concept allocator = moveable<T> &&
+concept allocator = moveable<T> && equality_comparable<T> &&
requires(T& alloc, layout layout, void* ptr)
{
{ alloc.alloc(layout) } -> same_as<void*>;
@@ -21,6 +21,8 @@ public:
static void* alloc(const layout&);
static void* realloc(void* ptr, const layout& old, const layout& new_layout);
static void dealloc(void* ptr, const layout&);
+
+ constexpr bool operator==(const GlobalHeap&) const { return true; }
};
static_assert(allocator<GlobalHeap>);