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