🔀 rename variable to avoid shadowing

This commit is contained in:
Niels Lohmann 2020-07-23 12:58:09 +02:00
parent 230dcfb7a3
commit 8159091d8f
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69

View file

@ -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