diff --git a/runtime/mem/allocator_adapter.h b/runtime/mem/allocator_adapter.h index db3af1a..f981216 100644 --- a/runtime/mem/allocator_adapter.h +++ b/runtime/mem/allocator_adapter.h @@ -143,13 +143,13 @@ public: } template - bool operator==(const AllocatorAdapter &other) + bool operator==(const AllocatorAdapter &other) const { return this->allocator_ == other.allocator_; } template - bool operator!=(const AllocatorAdapter &other) + bool operator!=(const AllocatorAdapter &other) const { return this->allocator_ != other.allocator_; }