diff --git a/test/src/unit-allocator.cpp b/test/src/unit-allocator.cpp index 06d56d5ed8..29ad93f5e6 100644 --- a/test/src/unit-allocator.cpp +++ b/test/src/unit-allocator.cpp @@ -110,6 +110,11 @@ struct my_allocator : std::allocator p->~T(); } } + + template + struct rebind { + using other = my_allocator; + }; }; // allows deletion of raw pointer, usually hold by json_value