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:
@@ -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);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user