Merge pull request #1492 from stac47/fix_gcc9_allocator

Fix gcc9 build error test/src/unit-allocator.cpp (Issue #1472)
This commit is contained in:
Niels Lohmann 2019-03-11 15:21:54 +01:00 committed by GitHub
commit cabe2357b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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