2
0
mirror of https://github.com/boostorg/json.git synced 2026-02-01 20:42:17 +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

@@ -593,7 +593,6 @@ void
array::
swap(array& other)
{
BOOST_ASSERT(this != &other);
if(*sp_ == *other.sp_)
{
t_ = detail::exchange(