From 255f7f2deec7d6f56743e22d5bf14db714c75a0f Mon Sep 17 00:00:00 2001 From: gabime Date: Fri, 8 Nov 2019 15:09:57 +0200 Subject: [PATCH] Optimze backtracer operator= --- include/spdlog/details/backtracer-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/details/backtracer-inl.h b/include/spdlog/details/backtracer-inl.h index d840ad08..21553c26 100644 --- a/include/spdlog/details/backtracer-inl.h +++ b/include/spdlog/details/backtracer-inl.h @@ -26,7 +26,7 @@ SPDLOG_INLINE backtracer &backtracer::operator=(backtracer other) { std::lock_guard lock(mutex_); enabled_ = other.enabled(); - messages_ = other.messages_; + messages_ = std::move(other.messages_); return *this; }