Fix wchar_t overloads and dump_info formatter

This commit is contained in:
Charles Milette 2021-11-15 16:52:31 -05:00
parent 95aa159bdd
commit 0ded003703
2 changed files with 2 additions and 2 deletions

View File

@ -154,7 +154,7 @@ template<typename... Args>
using format_string_t = fmt::format_string<Args...>;
template<typename... Args>
using wformat_string_t = fmt::basic_format_string<wchar_t, Args...>;
using wformat_string_t = fmt::basic_format_string<wchar_t, fmt::type_identity_t<Args>...>;
template<class T>
using remove_cvref_t = typename std::remove_cv<typename std::remove_reference<T>::type>::type;

View File

@ -137,7 +137,7 @@ struct formatter<spdlog::details::dump_info<T>, char>
SPDLOG_CONSTEXPR const char *hex_lower = "0123456789abcdef";
const char *hex_chars = use_uppercase ? hex_upper : hex_lower;
#if FMT_VERSION < 60000
#if !defined(SPDLOG_USE_STD_FORMAT) && FMT_VERSION < 60000
auto inserter = ctx.begin();
#else
auto inserter = ctx.out();