From cead430eedfb0d38f1e894d76447f12b2f7da8d4 Mon Sep 17 00:00:00 2001 From: gabime Date: Fri, 15 Sep 2023 21:25:17 +0300 Subject: [PATCH] Fixed compile --- include/spdlog/spdlog.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/spdlog/spdlog.h b/include/spdlog/spdlog.h index 1eaf737c..2a5733a6 100644 --- a/include/spdlog/spdlog.h +++ b/include/spdlog/spdlog.h @@ -143,6 +143,18 @@ inline void log(level::level_enum lvl, format_string_t fmt, Args &&...a default_logger_raw()->log(lvl, fmt, std::forward(args)...); } +template, typename... Args> +void log(source_loc loc, level::level_enum lvl, S fmt, Args &&...args) +{ + default_logger_raw()->log(loc, lvl, fmt, std::forward(args)...); +} + +template, typename... Args> +void log(level::level_enum lvl, S fmt, Args &&...args) +{ + default_logger_raw()->log(lvl, fmt, std::forward(args)...); +} + #ifdef SPDLOG_EMIT_SOURCE_LOCATION template void trace(loc_with_fmt fmt, Args &&...args)