Fix const-ness of == and != operators in CustomAllocator

This commit is contained in:
Tristan Penman 2015-12-27 15:43:31 +11:00
parent 40df802ba8
commit c54bf3ba87

View File

@ -88,12 +88,12 @@ public:
p->~T();
}
bool operator==(CustomAllocator const &other)
bool operator==(const CustomAllocator &other) const
{
return other.allocFn == allocFn && other.freeFn == freeFn;
}
bool operator!=(CustomAllocator const &other)
bool operator!=(const CustomAllocator &other) const
{
return !operator==(other);
}