From 1f4cae4bf7f3f7a8ae82068ea9c608797d926ccf Mon Sep 17 00:00:00 2001 From: gabime Date: Fri, 5 Oct 2018 14:50:30 +0300 Subject: [PATCH] Changed forward to std::move(log_msg) in thread pool --- include/spdlog/details/thread_pool.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/details/thread_pool.h b/include/spdlog/details/thread_pool.h index 2d5cb060..0c716c3b 100644 --- a/include/spdlog/details/thread_pool.h +++ b/include/spdlog/details/thread_pool.h @@ -151,7 +151,7 @@ public: void post_log(async_logger_ptr &&worker_ptr, details::log_msg &&msg, async_overflow_policy overflow_policy) { - async_msg async_m(std::move(worker_ptr), async_msg_type::log, std::forward(msg)); + async_msg async_m(std::move(worker_ptr), async_msg_type::log, std::move(msg)); post_async_msg_(std::move(async_m), overflow_policy); }