From 388679b00e6b07fc20767a6eecafded8fb6eadfd Mon Sep 17 00:00:00 2001 From: Wolfgang Petroschka Date: Fri, 13 Aug 2021 12:30:49 +0200 Subject: [PATCH] Fix empty additional info does not work with wchar_t based string. --- include/spdlog/async_logger-inl.h | 2 +- include/spdlog/logger-inl.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/spdlog/async_logger-inl.h b/include/spdlog/async_logger-inl.h index 9f94d14f..60126cf0 100644 --- a/include/spdlog/async_logger-inl.h +++ b/include/spdlog/async_logger-inl.h @@ -80,7 +80,7 @@ SPDLOG_INLINE void spdlog::async_logger::backend_flush_() { sink->flush(); } - SPDLOG_LOGGER_CATCH("") + SPDLOG_LOGGER_CATCH(string_view_t()) } } diff --git a/include/spdlog/logger-inl.h b/include/spdlog/logger-inl.h index c44caff3..b6d02624 100644 --- a/include/spdlog/logger-inl.h +++ b/include/spdlog/logger-inl.h @@ -203,7 +203,7 @@ SPDLOG_INLINE void logger::flush_() { sink->flush(); } - SPDLOG_LOGGER_CATCH("") + SPDLOG_LOGGER_CATCH(string_view_t()) } }