mirror of
https://github.com/nlohmann/json.git
synced 2026-02-26 05:16:27 +00:00
Fixed std::pair trying to deserialize via array functions.
This commit is contained in:
@@ -543,9 +543,6 @@ TEST_CASE("regression tests 2")
|
||||
{
|
||||
{
|
||||
json j = { 3, 8 };
|
||||
auto x = j.at(0).get<NonDefaultConstructible>();
|
||||
CHECK(x.x == 3);
|
||||
|
||||
auto p = j.get<std::pair<NonDefaultConstructible, NonDefaultConstructible>>();
|
||||
CHECK(p.first.x == 3);
|
||||
CHECK(p.second.x == 8);
|
||||
|
||||
Reference in New Issue
Block a user