diff --git a/test/src/unit-allocator.cpp b/test/src/unit-allocator.cpp index 06d56d5e..29ad93f5 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