diff --git a/runtime/mem/allocator_adapter.h b/runtime/mem/allocator_adapter.h index db3af1a60c1e026830f45f3c29170e511cb05962..f981216298a654c96a7db7af303de494fb11c4f3 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_; }