mirror of
https://github.com/nlohmann/json.git
synced 2026-02-09 23:52:15 +00:00
🚨 fix compiler warnings #2052
This commit is contained in:
@@ -272,8 +272,8 @@ TEST_CASE("bad my_allocator::construct")
|
||||
double,
|
||||
allocator_no_forward>;
|
||||
|
||||
bad_alloc_json json;
|
||||
json["test"] = bad_alloc_json::array_t();
|
||||
json["test"].push_back("should not leak");
|
||||
bad_alloc_json j;
|
||||
j["test"] = bad_alloc_json::array_t();
|
||||
j["test"].push_back("should not leak");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user