From 6e56d9691aa9575b2647b50eb7f036abfe10ec3b Mon Sep 17 00:00:00 2001 From: "M. Galib Uludag" Date: Sun, 18 Jun 2023 16:27:19 +0000 Subject: [PATCH] revert wrapper fix --- include/spdlog/common.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/spdlog/common.h b/include/spdlog/common.h index d7a63fb7..7569bbf5 100644 --- a/include/spdlog/common.h +++ b/include/spdlog/common.h @@ -189,9 +189,8 @@ private: template struct message_wrapper { - template - message_wrapper(U&& msg, details::source_location loc = details::source_location::current()) - : msg_{std::forward(msg)} + message_wrapper(T msg, details::source_location loc = details::source_location::current()) + : msg_{msg} , loc_{loc} {}