From 91fae223cc905bb7ad9c9917601584cfb956b925 Mon Sep 17 00:00:00 2001 From: gabime Date: Mon, 17 Nov 2014 01:12:50 +0200 Subject: [PATCH] async_sink to use queue of pointers of log_msgs - faster than moving.. --- include/spdlog/sinks/async_sink.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/spdlog/sinks/async_sink.h b/include/spdlog/sinks/async_sink.h index f3b170d7..5ec6b2b8 100644 --- a/include/spdlog/sinks/async_sink.h +++ b/include/spdlog/sinks/async_sink.h @@ -115,9 +115,7 @@ inline void spdlog::sinks::async_sink::_sink_it(const details::log_msg& msg) { using namespace spdlog::details; _push_sentry(); - //_q.push(std::move(msg)); - auto msg_p = std::unique_ptr(new log_msg(msg)); - _q.push(std::move(msg_p)); + _q.push(std::unique_ptr(new log_msg(msg))); }