Merge "Don't use std::allocator::pointer" into main

This commit is contained in:
Treehugger Robot 2024-01-11 21:22:05 +00:00 committed by Gerrit Code Review
commit 55af483b78

View file

@ -28,7 +28,7 @@ namespace vold {
// Allocator that delegates useful work to standard one but zeroes data before deallocating. // Allocator that delegates useful work to standard one but zeroes data before deallocating.
class ZeroingAllocator : public std::allocator<char> { class ZeroingAllocator : public std::allocator<char> {
public: public:
void deallocate(pointer p, size_type n) { void deallocate(value_type* p, size_type n) {
memset_explicit(p, 0, n); memset_explicit(p, 0, n);
std::allocator<char>::deallocate(p, n); std::allocator<char>::deallocate(p, n);
} }