From ddc9f201f45c58ff8d94e9fec5ad22873b965adc Mon Sep 17 00:00:00 2001 From: Laurent Stacul Date: Fri, 22 Feb 2019 16:05:41 +0000 Subject: [PATCH] Fix gcc9 build error test/src/unit-allocator.cpp (Issue #1472) --- test/src/unit-allocator.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/src/unit-allocator.cpp b/test/src/unit-allocator.cpp index 06d56d5ed..29ad93f5e 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