diff --git a/include/spdlog/common.h b/include/spdlog/common.h index 191ed224..b702c485 100644 --- a/include/spdlog/common.h +++ b/include/spdlog/common.h @@ -154,7 +154,7 @@ template using format_string_t = fmt::format_string; template -using wformat_string_t = fmt::basic_format_string; +using wformat_string_t = fmt::basic_format_string...>; template using remove_cvref_t = typename std::remove_cv::type>::type; diff --git a/include/spdlog/fmt/bin_to_hex.h b/include/spdlog/fmt/bin_to_hex.h index 0dd16e7a..835e4f07 100644 --- a/include/spdlog/fmt/bin_to_hex.h +++ b/include/spdlog/fmt/bin_to_hex.h @@ -137,7 +137,7 @@ struct formatter, 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();