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