diff --git a/include/spdlog/logger.h b/include/spdlog/logger.h index dec86ddb..a4f65d2c 100644 --- a/include/spdlog/logger.h +++ b/include/spdlog/logger.h @@ -141,37 +141,37 @@ public: log(source_loc{}, lvl, msg); } - template= 1, int>::type = 0> + template void trace(format_string_t fmt, Args &&...args) { log(level::trace, fmt, std::forward(args)...); } - template= 1, int>::type = 0> + template void debug(format_string_t fmt, Args &&...args) { log(level::debug, fmt, std::forward(args)...); } - template= 1, int>::type = 0> + template void info(format_string_t fmt, Args &&...args) { log(level::info, fmt, std::forward(args)...); } - template= 1, int>::type = 0> + template void warn(format_string_t fmt, Args &&...args) { log(level::warn, fmt, std::forward(args)...); } - template= 1, int>::type = 0> + template void error(format_string_t fmt, Args &&...args) { log(level::err, fmt, std::forward(args)...); } - template= 1, int>::type = 0> + template void critical(format_string_t fmt, Args &&...args) { log(level::critical, fmt, std::forward(args)...); @@ -225,37 +225,37 @@ public: log(source_loc{}, lvl, msg); } - template= 1, int>::type = 0> + template void trace(wformat_string_t fmt, Args &&...args) { log(level::trace, fmt, std::forward(args)...); } - template= 1, int>::type = 0> + template void debug(wformat_string_t fmt, Args &&...args) { log(level::debug, fmt, std::forward(args)...); } - template= 1, int>::type = 0> + template void info(wformat_string_t fmt, Args &&...args) { log(level::info, fmt, std::forward(args)...); } - template= 1, int>::type = 0> + template void warn(wformat_string_t fmt, Args &&...args) { log(level::warn, fmt, std::forward(args)...); } - template= 1, int>::type = 0> + template void error(wformat_string_t fmt, Args &&...args) { log(level::err, fmt, std::forward(args)...); } - template= 1, int>::type = 0> + template void critical(wformat_string_t fmt, Args &&...args) { log(level::critical, fmt, std::forward(args)...); diff --git a/include/spdlog/spdlog.h b/include/spdlog/spdlog.h index 890cd806..da73e23b 100644 --- a/include/spdlog/spdlog.h +++ b/include/spdlog/spdlog.h @@ -153,37 +153,37 @@ inline void log(level::level_enum lvl, format_string_t fmt, Args &&...a default_logger_raw()->log(source_loc{}, lvl, fmt, std::forward(args)...); } -template= 1, int>::type = 0> +template inline void trace(format_string_t fmt, Args &&...args) { default_logger_raw()->trace(fmt, std::forward(args)...); } -template= 1, int>::type = 0> +template inline void debug(format_string_t fmt, Args &&...args) { default_logger_raw()->debug(fmt, std::forward(args)...); } -template= 1, int>::type = 0> +template inline void info(format_string_t fmt, Args &&...args) { default_logger_raw()->info(fmt, std::forward(args)...); } -template= 1, int>::type = 0> +template inline void warn(format_string_t fmt, Args &&...args) { default_logger_raw()->warn(fmt, std::forward(args)...); } -template= 1, int>::type = 0> +template inline void error(format_string_t fmt, Args &&...args) { default_logger_raw()->error(fmt, std::forward(args)...); } -template= 1, int>::type = 0> +template inline void critical(format_string_t fmt, Args &&...args) { default_logger_raw()->critical(fmt, std::forward(args)...); @@ -214,37 +214,37 @@ inline void log(level::level_enum lvl, wformat_string_t fmt, Args &&... default_logger_raw()->log(source_loc{}, lvl, fmt, std::forward(args)...); } -template= 1, int>::type = 0> +template inline void trace(wformat_string_t fmt, Args &&...args) { default_logger_raw()->trace(fmt, std::forward(args)...); } -template= 1, int>::type = 0> +template inline void debug(wformat_string_t fmt, Args &&...args) { default_logger_raw()->debug(fmt, std::forward(args)...); } -template= 1, int>::type = 0> +template inline void info(wformat_string_t fmt, Args &&...args) { default_logger_raw()->info(fmt, std::forward(args)...); } -template= 1, int>::type = 0> +template inline void warn(wformat_string_t fmt, Args &&...args) { default_logger_raw()->warn(fmt, std::forward(args)...); } -template= 1, int>::type = 0> +template inline void error(wformat_string_t fmt, Args &&...args) { default_logger_raw()->error(fmt, std::forward(args)...); } -template= 1, int>::type = 0> +template inline void critical(wformat_string_t fmt, Args &&...args) { default_logger_raw()->critical(fmt, std::forward(args)...);