Fix empty additional info, 2nd try

There's actually a diffent string view type for wide string...
This commit is contained in:
Wolfgang Petroschka 2021-08-13 12:49:02 +02:00
parent 388679b00e
commit c98b29aa67
2 changed files with 8 additions and 0 deletions

View File

@ -80,7 +80,11 @@ SPDLOG_INLINE void spdlog::async_logger::backend_flush_()
{
sink->flush();
}
#if (defined(SPDLOG_WCHAR_TO_UTF8_SUPPORT) || defined(SPDLOG_WCHAR_FILENAMES)) && defined(_WIN32)
SPDLOG_LOGGER_CATCH(wstring_view_t())
#else
SPDLOG_LOGGER_CATCH(string_view_t())
#endif
}
}

View File

@ -203,7 +203,11 @@ SPDLOG_INLINE void logger::flush_()
{
sink->flush();
}
#if (defined(SPDLOG_WCHAR_TO_UTF8_SUPPORT) || defined(SPDLOG_WCHAR_FILENAMES)) && defined(_WIN32)
SPDLOG_LOGGER_CATCH(wstring_view_t())
#else
SPDLOG_LOGGER_CATCH(string_view_t())
#endif
}
}