From 375b7fdda5699cbe0ce8cc98e360c36e4e1b9279 Mon Sep 17 00:00:00 2001 From: John Andre Hestad Date: Thu, 28 Sep 2017 14:19:04 +0200 Subject: [PATCH] Fix SPDLOG_WCHAR_TO_UTF8_SUPPORT wchar_t logging --- include/spdlog/details/logger_impl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/spdlog/details/logger_impl.h b/include/spdlog/details/logger_impl.h index 79c4ef69..16222909 100644 --- a/include/spdlog/details/logger_impl.h +++ b/include/spdlog/details/logger_impl.h @@ -326,6 +326,7 @@ inline void spdlog::logger::critical_if(const bool flag, const T& msg) #ifdef SPDLOG_WCHAR_TO_UTF8_SUPPORT #include +#include template inline void spdlog::logger::log(level::level_enum lvl, const wchar_t* msg) @@ -399,7 +400,7 @@ inline void spdlog::logger::log_if(const bool flag, level::level_enum lvl, const { if (flag) { - log(lvl, fmt, args); + log(lvl, fmt, args...); } }