mirror of
https://github.com/nlohmann/json.git
synced 2025-08-13 14:42:28 +03: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