mirror of
https://github.com/nlohmann/json.git
synced 2026-02-09 23:52:15 +00:00
Fix gcc9 build error test/src/unit-allocator.cpp (Issue #1472)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user