👌 fix move constructor and move assignment

This commit is contained in:
Niels Lohmann
2021-01-08 11:21:03 +01:00
parent 0617bd248d
commit 04a0a07159
2 changed files with 0 additions and 19 deletions

View File

@@ -18821,9 +18821,6 @@ class basic_json
basic_json(basic_json&& other) noexcept
: m_type(std::move(other.m_type)),
m_value(std::move(other.m_value))
#if JSON_DIAGNOSTICS
, m_parent(other.m_parent)
#endif
{
// check that passed value is valid
other.assert_invariant();
@@ -18897,9 +18894,6 @@ class basic_json
using std::swap;
swap(m_type, other.m_type);
swap(m_value, other.m_value);
#if JSON_DIAGNOSTICS
m_parent = other.m_parent;
#endif
assert_invariant();
return *this;