Merge "Don't use std::allocator::pointer" into main
This commit is contained in:
commit
55af483b78
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ namespace vold {
|
|||
// Allocator that delegates useful work to standard one but zeroes data before deallocating.
|
||||
class ZeroingAllocator : public std::allocator<char> {
|
||||
public:
|
||||
void deallocate(pointer p, size_type n) {
|
||||
void deallocate(value_type* p, size_type n) {
|
||||
memset_explicit(p, 0, n);
|
||||
std::allocator<char>::deallocate(p, n);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue