Fixed std::pair trying to deserialize via array functions.

This commit is contained in:
Anthony VH
2021-01-11 18:16:15 +01:00
parent 23f462b598
commit 672e8bfc1d
3 changed files with 30 additions and 23 deletions

View File

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