0
0
Fork 0
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:
Jason Volk 2019-04-24 19:37:23 -07:00
parent c45353efec
commit a3a4741708

View file

@ -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;
}