From 398851af684bd0402d9e37659bfd08223829e0e6 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sat, 14 Sep 2019 16:55:57 -0700 Subject: [PATCH] ircd::server::tag: Use explicit move assignment operations. --- include/ircd/server/tag.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/include/ircd/server/tag.h b/include/ircd/server/tag.h index 61431359d..32a59a575 100644 --- a/include/ircd/server/tag.h +++ b/include/ircd/server/tag.h @@ -125,11 +125,10 @@ ircd::server::tag::operator=(tag &&o) noexcept { this->~tag(); - new (this) tag - { - std::move(o) - }; - + state = std::move(o.state); + p = std::move(o.p); + request = std::move(o.request); + cancellation = std::move(o.cancellation); return *this; }