mirror of
https://github.com/nlohmann/json.git
synced 2025-08-06 18:39:54 +08:00
🔀 rename variable to avoid shadowing
This commit is contained in:
parent
230dcfb7a3
commit
8159091d8f
@ -278,8 +278,8 @@ TEST_CASE("value conversion")
|
||||
SECTION("reserve is called on containers that supports it")
|
||||
{
|
||||
// make sure all values are properly copied
|
||||
json j({1, 2, 3, 4, 5, 6, 7, 8, 9, 10});
|
||||
auto v2 = j.get<std::vector<int>>();
|
||||
json j2({1, 2, 3, 4, 5, 6, 7, 8, 9, 10});
|
||||
auto v2 = j2.get<std::vector<int>>();
|
||||
CHECK(v2.size() == 10);
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user