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

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

No files matched your search

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