mirror of
https://github.com/matrix-construct/construct
synced 2024-06-02 18:18:56 +02:00
ircd::json: Simplify value move ctor.
This commit is contained in:
parent
c45353efec
commit
a3a4741708
|
@ -3645,13 +3645,8 @@ ircd::json::value::operator=(value &&other)
|
|||
noexcept
|
||||
{
|
||||
this->~value();
|
||||
integer = other.integer;
|
||||
len = other.len;
|
||||
type = other.type;
|
||||
serial = other.serial;
|
||||
alloc = other.alloc;
|
||||
other.alloc = false;
|
||||
floats = other.floats;
|
||||
new (this) value(std::move(other));
|
||||
assert(other.alloc == false);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue