From c475418975ebf07ccebed860505f80966c38653e Mon Sep 17 00:00:00 2001 From: Charless Milette Date: Sat, 13 Nov 2021 11:50:26 -0500 Subject: [PATCH] Put formatter specialization in its original namespace --- include/spdlog/fmt/bin_to_hex.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/include/spdlog/fmt/bin_to_hex.h b/include/spdlog/fmt/bin_to_hex.h index 62807d63..cf0c84ff 100644 --- a/include/spdlog/fmt/bin_to_hex.h +++ b/include/spdlog/fmt/bin_to_hex.h @@ -74,8 +74,18 @@ inline details::dump_info to_hex(const It range_begin, const It range_end, s return details::dump_info(range_begin, range_end, size_per_line); } +} // namespace spdlog + +namespace +#ifdef SPDLOG_USE_STD_FORMAT + std +#else + fmt +#endif +{ + template -struct fmt_lib::formatter, char> +struct formatter, char> { const char delimiter = ' '; bool put_newlines = true; @@ -210,4 +220,4 @@ struct fmt_lib::formatter, char> } } }; -} // namespace spdlog +} // namespace fmt/std