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

This commit is contained in:
Laurent Stacul 2019-02-22 16:05:41 +00:00
parent 21516f2bae
commit ddc9f201f4

View File

@ -110,6 +110,11 @@ struct my_allocator : std::allocator<T>
p->~T();
}
}
template <class U>
struct rebind {
using other = my_allocator<U>;
};
};
// allows deletion of raw pointer, usually hold by json_value