🏁 trying to use constructors from std::allocator #1536

This commit is contained in:
Niels Lohmann 2019-03-21 14:09:29 +01:00
parent 1126c9ca74
commit baaa2a4d0f
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69

View file

@ -71,6 +71,8 @@ static bool next_deallocate_fails = false;
template<class T> template<class T>
struct my_allocator : std::allocator<T> struct my_allocator : std::allocator<T>
{ {
using std::allocator<T>::allocator;
template<class... Args> template<class... Args>
void construct(T* p, Args&& ... args) void construct(T* p, Args&& ... args)
{ {