diff --git a/test/filesystem_test.cpp b/test/filesystem_test.cpp index e4e8a82..bc7bbbb 100644 --- a/test/filesystem_test.cpp +++ b/test/filesystem_test.cpp @@ -266,17 +266,19 @@ class TestAllocator { public: using value_type = T; - + using pointer = T*; + using const_pointer = const T*; + using reference = T&; + using const_reference = const T&; + using difference_type = ptrdiff_t; + using size_type = size_t; TestAllocator() noexcept {} template TestAllocator(TestAllocator const&) noexcept { } - value_type* allocate(std::size_t n) { return static_cast(::operator new(n * sizeof(value_type))); } - void deallocate(value_type* p, std::size_t) noexcept { ::operator delete(p); } - template struct rebind { typedef TestAllocator other;