From 8b8bc20f3021dfe4c96c1b0213080844129c0a9f Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Tue, 4 Jul 2023 17:53:04 +0300 Subject: [PATCH] Added const qualifier to bin_hex_formatter to support c++20 --- include/spdlog/fmt/bin_to_hex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/fmt/bin_to_hex.h b/include/spdlog/fmt/bin_to_hex.h index 1cb51ce6..3209c1dc 100644 --- a/include/spdlog/fmt/bin_to_hex.h +++ b/include/spdlog/fmt/bin_to_hex.h @@ -156,7 +156,7 @@ struct formatter, char> // format the given bytes range as hex template - auto format(const spdlog::details::dump_info &the_range, FormatContext &ctx) -> decltype(ctx.out()) + auto format(const spdlog::details::dump_info &the_range, FormatContext &ctx) const -> decltype(ctx.out()) { SPDLOG_CONSTEXPR const char *hex_upper = "0123456789ABCDEF"; SPDLOG_CONSTEXPR const char *hex_lower = "0123456789abcdef";