2
0
mirror of https://github.com/boostorg/json.git synced 2026-01-24 18:02:22 +00:00

array self-swap

This commit is contained in:
Dmitry Arkhipov
2022-08-28 13:35:03 +03:00
parent aaefd66bb1
commit 2cbc263ced
2 changed files with 6 additions and 1 deletions

View File

@@ -1154,6 +1154,12 @@ public:
check(a1);
BOOST_TEST(a2.size() == 1);
});
fail_loop([&](storage_ptr const& sp)
{
array a({1, true, str_}, sp);
swap(a, a);
check(a);
});
}
}