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} {}