From 992a4e60772701cb6ee0d3b67159966a02f1f0d6 Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 28 Nov 2015 16:18:50 +0200 Subject: [PATCH] revert Args& by referebce in create --- include/spdlog/details/spdlog_impl.h | 2 +- include/spdlog/spdlog.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/spdlog/details/spdlog_impl.h b/include/spdlog/details/spdlog_impl.h index 07e41145..f9483c98 100644 --- a/include/spdlog/details/spdlog_impl.h +++ b/include/spdlog/details/spdlog_impl.h @@ -108,7 +108,7 @@ inline std::shared_ptr spdlog::create(const std::string& logger_ template -inline std::shared_ptr spdlog::create(const std::string& logger_name, Args&... args) +inline std::shared_ptr spdlog::create(const std::string& logger_name, Args... args) { sink_ptr sink = std::make_shared(args...); return details::registry::instance().create(logger_name, { sink }); diff --git a/include/spdlog/spdlog.h b/include/spdlog/spdlog.h index 64cc6f87..9c44f746 100644 --- a/include/spdlog/spdlog.h +++ b/include/spdlog/spdlog.h @@ -112,7 +112,7 @@ std::shared_ptr create(const std::string& logger_name, const It& sinks_b // Create and register a logger with templated sink type // Example: spdlog::create("mylog", "dailylog_filename", "txt"); template -std::shared_ptr create(const std::string& logger_name, Args&...); +std::shared_ptr create(const std::string& logger_name, Args...); // Register the given logger with the given name