mirror of
https://github.com/nlohmann/json.git
synced 2024-12-01 03:19:03 +08:00
Fix gcc9 build error test/src/unit-allocator.cpp (Issue #1472)
This commit is contained in:
parent
21516f2bae
commit
ddc9f201f4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user