From 5885b41daaceece5829f6024a7cf18f411035cb2 Mon Sep 17 00:00:00 2001 From: "M. Galib Uludag" Date: Sun, 18 Jun 2023 17:03:25 +0000 Subject: [PATCH] fix replace_all error --- include/spdlog/logger.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/spdlog/logger.h b/include/spdlog/logger.h index fc11cc28..72690204 100644 --- a/include/spdlog/logger.h +++ b/include/spdlog/logger.h @@ -98,9 +98,9 @@ public: } template - void log(level::level_enum lvl, const T &msg, source_loc loc = source_loc::current()) + void log(level::level_enum lvl, const T &msg) { - log(msg.location(), lvl, msg.message()); + log(source_loc{}, lvl, msg); } // T cannot be statically converted to format string (including string_view/wstring_view)