From: Kefu Chai Date: Thu, 3 Mar 2022 07:18:34 +0000 (+0800) Subject: test/common/test_allocate_unique: drop hint parameter from allocate() X-Git-Tag: v18.0.0~366^2~11 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b88f3e18c1f606e87931e21d1f5c698c47ac6ca1;p=ceph.git test/common/test_allocate_unique: drop hint parameter from allocate() the "hint" parameter was dropped from C++20. Signed-off-by: Kefu Chai --- diff --git a/src/test/common/test_allocate_unique.cc b/src/test/common/test_allocate_unique.cc index 09944951baa3..94cb025a49da 100644 --- a/src/test/common/test_allocate_unique.cc +++ b/src/test/common/test_allocate_unique.cc @@ -38,9 +38,9 @@ struct logging_allocator { template logging_allocator(const logging_allocator& other) : log(other.log) {} - T* allocate(size_t n, const void* hint=0) + T* allocate(size_t n) { - auto p = std::allocator{}.allocate(n, hint); + auto p = std::allocator{}.allocate(n); log->emplace_back(event{n * sizeof(T), true}); return p; }