Fix SPDLOG_WCHAR_TO_UTF8_SUPPORT wchar_t logging

This commit is contained in:
John Andre Hestad 2017-09-28 14:19:04 +02:00
parent 3a21b765cb
commit 375b7fdda5
1 changed files with 2 additions and 1 deletions

View File

@ -326,6 +326,7 @@ inline void spdlog::logger::critical_if(const bool flag, const T& msg)
#ifdef SPDLOG_WCHAR_TO_UTF8_SUPPORT
#include <codecvt>
#include <locale>
template <typename... Args>
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...);
}
}