mirror of
https://github.com/matrix-construct/construct
synced 2025-01-14 00:34:18 +01:00
ircd::json: Simplify value move ctor.
This commit is contained in:
parent
c45353efec
commit
a3a4741708
1 changed files with 2 additions and 7 deletions
|
@ -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