!85 Fix compare operator issue

Merge pull request !85 from wangyantian/fix_14SF18
This commit is contained in:
openharmony_ci 2022-03-07 08:20:19 +00:00 committed by Gitee
commit ee6e47eecc
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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_;
}