diff --git a/include/spdlog/common.h b/include/spdlog/common.h index 6b5fb1a9..e1b84e53 100644 --- a/include/spdlog/common.h +++ b/include/spdlog/common.h @@ -257,6 +257,7 @@ using wmemory_buf_t = fmt::basic_memory_buffer; template using wformat_string_t = fmt::wformat_string; # endif +# define SPDLOG_BUF_TO_STRING(x) fmt::to_string(x) #endif #ifdef SPDLOG_WCHAR_TO_UTF8_SUPPORT