Commit c98b29aa authored by Wolfgang Petroschka's avatar Wolfgang Petroschka

Fix empty additional info, 2nd try

There's actually a diffent string view type for wide string...
parent 388679b0
...@@ -80,7 +80,11 @@ SPDLOG_INLINE void spdlog::async_logger::backend_flush_() ...@@ -80,7 +80,11 @@ SPDLOG_INLINE void spdlog::async_logger::backend_flush_()
{ {
sink->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()) SPDLOG_LOGGER_CATCH(string_view_t())
#endif
} }
} }
......
...@@ -203,7 +203,11 @@ SPDLOG_INLINE void logger::flush_() ...@@ -203,7 +203,11 @@ SPDLOG_INLINE void logger::flush_()
{ {
sink->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()) SPDLOG_LOGGER_CATCH(string_view_t())
#endif
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment