Fix compare operator

Signed-off-by: wangyantian <wangyantian@huawei.com>
This commit is contained in:
wangyantian 2022-03-07 09:40:43 +08:00
parent 3a595f6ceb
commit c64b597d17

View File

@ -143,13 +143,13 @@ public:
}
template <typename U>
bool operator==(const AllocatorAdapter<U> &other)
bool operator==(const AllocatorAdapter<U> &other) const
{
return this->allocator_ == other.allocator_;
}
template <typename U>
bool operator!=(const AllocatorAdapter<U> &other)
bool operator!=(const AllocatorAdapter<U> &other) const
{
return this->allocator_ != other.allocator_;
}