From a0ef9250d5633e174d1fbb65a1851bbacaf88c4c Mon Sep 17 00:00:00 2001 From: wangyantian Date: Mon, 7 Mar 2022 09:40:43 +0800 Subject: [PATCH] Fix compare operator Signed-off-by: wangyantian --- runtime/mem/allocator_adapter.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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_; }