1
0
mirror of https://github.com/nlohmann/json synced 2025-01-08 08:20:16 +00:00

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