From 775e410b000d8a1e1bb3766bd21add5db12b5108 Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 7 Jul 2018 16:29:05 +0300 Subject: [PATCH] Fixed issue #747 --- include/spdlog/details/logger_impl.h | 24 ++++++++++++------------ include/spdlog/logger.h | 12 ++++++------ 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/include/spdlog/details/logger_impl.h b/include/spdlog/details/logger_impl.h index dc3dcfa5..75ce7c6c 100644 --- a/include/spdlog/details/logger_impl.h +++ b/include/spdlog/details/logger_impl.h @@ -101,39 +101,39 @@ inline void spdlog::logger::log(level::level_enum lvl, const T &msg) } template -inline void spdlog::logger::trace(const char *fmt, const Arg1 &arg1, const Args &... args) +inline void spdlog::logger::trace(const char *fmt, const Args &... args) { - log(level::trace, fmt, arg1, args...); + log(level::trace, fmt, args...); } template -inline void spdlog::logger::debug(const char *fmt, const Arg1 &arg1, const Args &... args) +inline void spdlog::logger::debug(const char *fmt, const Args &... args) { - log(level::debug, fmt, arg1, args...); + log(level::debug, fmt, args...); } template -inline void spdlog::logger::info(const char *fmt, const Arg1 &arg1, const Args &... args) +inline void spdlog::logger::info(const char *fmt, const Args &... args) { - log(level::info, fmt, arg1, args...); + log(level::info, fmt, args...); } template -inline void spdlog::logger::warn(const char *fmt, const Arg1 &arg1, const Args &... args) +inline void spdlog::logger::warn(const char *fmt, const Args &... args) { - log(level::warn, fmt, arg1, args...); + log(level::warn, fmt, args...); } template -inline void spdlog::logger::error(const char *fmt, const Arg1 &arg1, const Args &... args) +inline void spdlog::logger::error(const char *fmt, const Args &... args) { - log(level::err, fmt, arg1, args...); + log(level::err, fmt, args...); } template -inline void spdlog::logger::critical(const char *fmt, const Arg1 &arg1, const Args &... args) +inline void spdlog::logger::critical(const char *fmt, const Args &... args) { - log(level::critical, fmt, arg1, args...); + log(level::critical, fmt, args...); } template diff --git a/include/spdlog/logger.h b/include/spdlog/logger.h index 5d67bf8d..6828312e 100644 --- a/include/spdlog/logger.h +++ b/include/spdlog/logger.h @@ -46,22 +46,22 @@ public: void log(level::level_enum lvl, const char *msg); template - void trace(const char *fmt, const Arg1 &, const Args &... args); + void trace(const char *fmt, const Args &... args); template - void debug(const char *fmt, const Arg1 &, const Args &... args); + void debug(const char *fmt, const Args &... args); template - void info(const char *fmt, const Arg1 &, const Args &... args); + void info(const char *fmt, const Args &... args); template - void warn(const char *fmt, const Arg1 &, const Args &... args); + void warn(const char *fmt, const Args &... args); template - void error(const char *fmt, const Arg1 &, const Args &... args); + void error(const char *fmt, const Args &... args); template - void critical(const char *fmt, const Arg1 &, const Args &... args); + void critical(const char *fmt, const Args &... args); #ifdef SPDLOG_WCHAR_TO_UTF8_SUPPORT template