mirror of
https://github.com/tristanpenman/valijson.git
synced 2025-01-31 14:39:53 +01:00
Fix const-ness of == and != operators in CustomAllocator
This commit is contained in:
parent
40df802ba8
commit
c54bf3ba87
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user