From 06e2ea8855c1a673cadd11a48d7b37f0326d3902 Mon Sep 17 00:00:00 2001 From: k1988 Date: Thu, 8 Mar 2018 19:10:52 +0800 Subject: [PATCH] Fix a conflict of argument and namespace --- include/spdlog/details/logger_impl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/spdlog/details/logger_impl.h b/include/spdlog/details/logger_impl.h index 11cbc7e4..516e0a50 100644 --- a/include/spdlog/details/logger_impl.h +++ b/include/spdlog/details/logger_impl.h @@ -217,11 +217,11 @@ inline void spdlog::logger::log(level::level_enum lvl, const wchar_t* msg) } template -inline void spdlog::logger::log(level::level_enum lvl, const wchar_t* fmt, const Args&... args) +inline void spdlog::logger::log(level::level_enum lvl, const wchar_t* fmtstr, const Args&... args) { fmt::WMemoryWriter wWriter; - wWriter.write(fmt, args...); + wWriter.write(fmtstr, args...); log(lvl, wWriter.c_str()); }