diff --git a/include/spdlog/fmt/bin_to_hex.h b/include/spdlog/fmt/bin_to_hex.h index 4a091dde..c6c9bda8 100644 --- a/include/spdlog/fmt/bin_to_hex.h +++ b/include/spdlog/fmt/bin_to_hex.h @@ -116,7 +116,12 @@ struct formatter> std::size_t pos = 0; std::size_t column = line_size; +#if FMT_VERSION < 60000 auto inserter = ctx.begin(); +#else + auto inserter = ctx.out(); +#endif + for (auto &item : the_range) {