mirror of
https://github.com/nlohmann/json.git
synced 2026-03-10 11:11:24 +00:00
fixed tests for copy assignment
This commit is contained in:
@@ -445,7 +445,6 @@ class basic_json
|
||||
/// copy assignment
|
||||
inline reference& operator=(basic_json other) noexcept
|
||||
{
|
||||
assert(false); // not sure if function will ever be called
|
||||
std::swap(m_type, other.m_type);
|
||||
std::swap(m_value, other.m_value);
|
||||
return *this;
|
||||
|
||||
@@ -445,7 +445,6 @@ class basic_json
|
||||
/// copy assignment
|
||||
inline reference& operator=(basic_json other) noexcept
|
||||
{
|
||||
assert(false); // not sure if function will ever be called
|
||||
std::swap(m_type, other.m_type);
|
||||
std::swap(m_value, other.m_value);
|
||||
return *this;
|
||||
|
||||
Reference in New Issue
Block a user