From 85c2a6ea74b62c15e81b08afc6ed6047555ca358 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Fri, 24 Oct 2025 18:04:26 +0300 Subject: [PATCH] The `hint` parameter of `allocate` has been removed in C++20 --- test/shared_ptr_alloc_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/shared_ptr_alloc_test.cpp b/test/shared_ptr_alloc_test.cpp index 9ae9628..08b9ec5 100644 --- a/test/shared_ptr_alloc_test.cpp +++ b/test/shared_ptr_alloc_test.cpp @@ -52,7 +52,7 @@ public: void * operator new(std::size_t) { - return std::allocator().allocate(1, static_cast(0)); + return std::allocator().allocate(1); } void operator delete(void * p)