Commit ddc9f201 by Laurent Stacul

Fix gcc9 build error test/src/unit-allocator.cpp (Issue #1472)

parent 21516f2b
...@@ -110,6 +110,11 @@ struct my_allocator : std::allocator<T> ...@@ -110,6 +110,11 @@ struct my_allocator : std::allocator<T>
p->~T(); p->~T();
} }
} }
template <class U>
struct rebind {
using other = my_allocator<U>;
};
}; };
// allows deletion of raw pointer, usually hold by json_value // allows deletion of raw pointer, usually hold by json_value
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment